Skip to content

Commit 688bc47

Browse files
committed
Change the 'instance help' message kind to 'info'
Do this because the 'warning' kind is not the valid one for this message.
1 parent 8d56f9d commit 688bc47

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lkql_checker/src/gnatcheck-rules-rule_table.adb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1052,9 +1052,9 @@ package body Gnatcheck.Rules.Rule_Table is
10521052
then To_String (Instance.Defined_At)
10531053
else "command line") & Diag_Defined_At);
10541054
if not Instance_Help_Emitted then
1055-
Warning
1055+
Info
10561056
("if you want to pass multiple parameters to a rule you " &
1057-
"should use the comma separated notation: e.g. " &
1057+
"should use the comma separated notation: e.g. " &
10581058
"+RMy_Rule:Param1,Param2");
10591059
Instance_Help_Emitted := True;
10601060
end if;

testsuite/tests/gnatcheck_errors/same_name_instances/test.out

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ In rule options
22
===============
33

44
gnatcheck: rule instance with the same name already exists: "same_alias" previously instantiated at command line
5-
gnatcheck: if you want to pass multiple parameters to a rule you should use the comma separated notation: e.g. +RMy_Rule:Param1,Param2
5+
if you want to pass multiple parameters to a rule you should use the comma separated notation: e.g. +RMy_Rule:Param1,Param2
66
gnatcheck: rule instance with the same name already exists: "comp_check" previously instantiated at command line
77
gnatcheck: rule instance with the same name already exists: "comp_check" previously instantiated at command line
88
>>>program returned status code 5
@@ -11,12 +11,12 @@ In command-line
1111
===============
1212

1313
gnatcheck: rule instance with the same name already exists: "goto_statements" previously instantiated at command line
14-
gnatcheck: if you want to pass multiple parameters to a rule you should use the comma separated notation: e.g. +RMy_Rule:Param1,Param2
14+
if you want to pass multiple parameters to a rule you should use the comma separated notation: e.g. +RMy_Rule:Param1,Param2
1515
>>>program returned status code 5
1616

1717
In command-line and rule options
1818
================================
1919

2020
gnatcheck: rule instance with the same name already exists: "goto_statements" previously instantiated at command line (rules.txt:1:1)
21-
gnatcheck: if you want to pass multiple parameters to a rule you should use the comma separated notation: e.g. +RMy_Rule:Param1,Param2
21+
if you want to pass multiple parameters to a rule you should use the comma separated notation: e.g. +RMy_Rule:Param1,Param2
2222
>>>program returned status code 5

0 commit comments

Comments
 (0)