Browse Source

Set the whole configDir instead of only configFile for checkstyle

pull/5844/head
XiangRongLin 1 year ago
parent
commit
985308bf0c
  1. 2
      app/build.gradle
  2. 3
      checkstyle.xml

2
app/build.gradle

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

3
checkstyle.xml

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

Loading…
Cancel
Save