Set the whole configDir instead of only configFile for checkstyle

This commit is contained in:
XiangRongLin 2021-03-15 19:21:53 +01:00
parent 80fb351ad3
commit 985308bf0c
2 changed files with 2 additions and 3 deletions

View File

@ -111,7 +111,7 @@ configurations {
} }
checkstyle { checkstyle {
configFile rootProject.file('checkstyle.xml') configDir rootProject.file(".")
ignoreFailures false ignoreFailures false
showViolations true showViolations true
toolVersion = checkstyleVersion toolVersion = checkstyleVersion

View File

@ -22,8 +22,7 @@
<!-- https://checkstyle.org/config_filters.html#SuppressionFilter --> <!-- https://checkstyle.org/config_filters.html#SuppressionFilter -->
<module name="SuppressionFilter"> <module name="SuppressionFilter">
<property name="file" value="${org.checkstyle.sun.suppressionfilter.config}" <property name="file" value="${config_loc}/checkstyle-suppressions.xml" />
default="checkstyle-suppressions.xml" />
<property name="optional" value="true"/> <property name="optional" value="true"/>
</module> </module>