Skip to content

Commit

Permalink
Pull #990: 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 23, 2023
1 parent fb71495 commit c24a996
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sevntu-checks/config/ant-phase-verify.xml
Expand Up @@ -52,6 +52,8 @@
failureProperty="checkstyle.failure.property"
executeIgnoredModules="true"
>
<property key="checkstyle.non-main-files-suppressions.file"
file="${checkstyle.non-main-files-suppressions.file}"/>
<path>
<fileset dir="${basedir}/.." includes="**/*">
<exclude name=".git/**/*"/>
Expand Down
2 changes: 2 additions & 0 deletions sevntu-checks/pom.xml
Expand Up @@ -21,6 +21,7 @@
<checkstyle.version>10.7.0</checkstyle.version>
<checkstyle.configLocation>https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle_checks.xml</checkstyle.configLocation>
<checkstyle.nonMain.configLocation>https://raw.githubusercontent.com/checkstyle/checkstyle/checkstyle-${checkstyle.version}/config/checkstyle_non_main_files_checks.xml</checkstyle.nonMain.configLocation>
<checkstyle.non-main-files-suppressions.file>config/checkstyle_non_main_files_suppressions.xml</checkstyle.non-main-files-suppressions.file>
<checkstyle.header>https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java.header</checkstyle.header>
<checkstyle.regexp.header>https://raw.githubusercontent.com/checkstyle/checkstyle/master/config/java_regexp.header</checkstyle.regexp.header>
<antrun.plugin.version>3.1.0</antrun.plugin.version>
Expand Down Expand Up @@ -267,6 +268,7 @@
<property name="mvn.project.build.directory" value="${project.build.directory}"/>
<property name="checkstyle.configLocation" value="${checkstyle.configLocation}"/>
<property name="checkstyle.nonMain.configLocation" value="${checkstyle.nonMain.configLocation}"/>
<property name="checkstyle.non-main-files-suppressions.file" value="${checkstyle.non-main-files-suppressions.file}"/>
<property name="checkstyle.header" value="${checkstyle.header}"/>
<property name="checkstyle.regexp.header" value="${checkstyle.regexp.header}"/>
<ant antfile="config/ant-phase-verify.xml"/>
Expand Down

0 comments on commit c24a996

Please sign in to comment.