Skip to content

Commit 49e6eff

Browse files
committed
Fix test failing on windows. Also fix missing space in error message.
It's actually better if we don't show the specific path in the error message.
1 parent 2621dd1 commit 49e6eff

File tree

2 files changed

+3
-4
lines changed
  • lkql_jit/language/src/main/java/com/adacore/lkql_jit/langkit_translator/passes
  • testsuite/tests/gnatcheck_errors/lkql_syntax_warning

2 files changed

+3
-4
lines changed

lkql_jit/language/src/main/java/com/adacore/lkql_jit/langkit_translator/passes/TranslationPass.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -622,9 +622,8 @@ public LKQLNode visit(Liblkqllang.PatternDetailDelimiterIs patternDetailDelimite
622622
.emitDiagnostic(
623623
CheckerUtils.MessageKind.WARNING,
624624
"'is' syntax is deprecated for patterns. Please consider migrating your"
625-
+ " code via 'lkql refactor -r IS_TO_COLON"
626-
+ patternDetailDelimiterIs.getUnit().getFileName()
627-
+ "'.",
625+
+ " code via 'lkql refactor -r IS_TO_COLON "
626+
+ "path/to/your/rule_file.lkql'.",
628627
null,
629628
SourceSectionWrapper.create(
630629
patternDetailDelimiterIs.getSourceLocationRange(), source));

testsuite/tests/gnatcheck_errors/lkql_syntax_warning/test.out

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
gnatcheck: foo.lkql:4:29: 'is' syntax is deprecated for patterns. Please consider migrating your code via 'lkql refactor -r IS_TO_COLON/rules/foo.lkql'.
1+
gnatcheck: foo.lkql:4:29: 'is' syntax is deprecated for patterns. Please consider migrating your code via 'lkql refactor -r IS_TO_COLON path/to/your/rule_file.lkql'.
22
1. Summary
33

44
fully compliant sources : 1

0 commit comments

Comments
 (0)