1
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-11-16 02:13:57 +01:00

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 {
configFile rootProject.file('checkstyle.xml')
configDir rootProject.file(".")
ignoreFailures false
showViolations true
toolVersion = checkstyleVersion

View File

@ -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>