Noticed in CircleCI job https://app.circleci.com/pipelines/github/checkstyle/checkstyle/37771/workflows/847554ee-ec79-474b-acc5-284bd4a6e9f5/jobs/1128669?invite=true#step-102-4729_26
...
No Java22 files to process
This is not true, because we have multiple files that are marked as compilable with JavaX
The issue comes from the grep here:
|
javac22) |
|
files=($(grep -Rl --include='*.java' ': Compilable with Java22' \ |
|
src/test/resources-noncompilable \ |
|
src/it/resources-noncompilable \ |
|
src/xdocs-examples/resources-noncompilable || true)) |
It is not case-insensitive, and therefore does not pick up these files:
grep -Rl --include='*.java' ': Compilable with Java22' \
src/test/resources-noncompilable \
src/it/resources-noncompilable \
src/xdocs-examples/resources-noncompilable
# no output
We need to add -i/--ignore-case to make it pick up these files:
grep -Rli --include='*.java' ': Compilable with Java22' \
src/test/resources-noncompilable \
src/it/resources-noncompilable \
src/xdocs-examples/resources-noncompilable
src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/antlr4/InputAntlr4AstRegressionPatternsInIfStatement.java
src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/antlr4/InputAntlr4AstRegressionPatternsInSwitch.java
src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/antlr4/InputAntlr4AstRegressionCaseDefault.java
src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/antlr4/InputAntlr4AstRegressionPatternsInFor.java
src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/antlr4/InputAntlr4AstRegressionPatternMatchingInSwitch.java
src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/antlr4/InputAntlr4AstRegressionPatternsInTernary.java
src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/grammar/antlr4/InputAntlr4AstRegressionPatternsInWhile.java
src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/checks/coding/missingswitchdefault/InputMissingSwitchDefaultCaseLabelElements.java
Noticed in CircleCI job https://app.circleci.com/pipelines/github/checkstyle/checkstyle/37771/workflows/847554ee-ec79-474b-acc5-284bd4a6e9f5/jobs/1128669?invite=true#step-102-4729_26
This is not true, because we have multiple files that are marked as
compilable with JavaXThe issue comes from the
grephere:checkstyle/.ci/validation.sh
Lines 637 to 641 in e4b1a95
It is not case-insensitive, and therefore does not pick up these files:
We need to add
-i/--ignore-caseto make it pick up these files: