Skip to content

Commit

Permalink
Pull #12761: Define variable for non-main-files-suppressions file
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyanK7 authored and romani committed Feb 20, 2023
1 parent f5b3e7e commit 40f4092
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .ci/validation.sh
Expand Up @@ -693,7 +693,8 @@ no-error-sevntu-checks)
mvn -e --no-transfer-progress -Pno-validations verify -Dcheckstyle.ant.skip=false \
-Dcheckstyle.version="${CS_POM_VERSION}" \
-Dcheckstyle.configLocation=../../../config/checkstyle_checks.xml \
-Dcheckstyle.nonMain.configLocation=../../../config/checkstyle_non_main_files_checks.xml
-Dcheckstyle.nonMain.configLocation=../../../config/checkstyle_non_main_files_checks.xml \
-Dcheckstyle.non-main-files-suppressions.file=config/checkstyle_non_main_files_suppressions.xml
cd ../../
removeFolderWithProtectedFiles sevntu.checkstyle
;;
Expand Down
2 changes: 2 additions & 0 deletions config/ant-phase-verify.xml
Expand Up @@ -67,6 +67,8 @@
failureProperty="checkstyle.failure.property"
executeIgnoredModules="true"
>
<property key="checkstyle.non-main-files-suppressions.file"
file="config/checkstyle_non_main_files_suppressions.xml"/>
<path>
<fileset dir="${basedir}" includes="**/*">
<exclude name=".git/**/*"/>
Expand Down
2 changes: 1 addition & 1 deletion config/checkstyle_non_main_files_checks.xml
Expand Up @@ -11,7 +11,7 @@
<!-- Suppressions for resources -->
<module name="SuppressionFilter">
<property name="file"
value="config/checkstyle_non_main_files_suppressions.xml"/>
value="${checkstyle.non-main-files-suppressions.file}"/>
</module>
<!-- Miscellaneous -->
<module name="NewlineAtEndOfFile" />
Expand Down

0 comments on commit 40f4092

Please sign in to comment.