Move checkstyle config to buildscripts/

Checkstyle configuration is just noise in the root directory. Neither
users nor developers need to look at it often.
This commit is contained in:
Eric Anderson 2017-07-07 10:57:03 -07:00
parent ae66c72da3
commit e6d0062d20
4 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ subprojects {
apply plugin: "checkstyle" apply plugin: "checkstyle"
checkstyle { checkstyle {
configFile = file("$rootDir/../checkstyle.xml") configFile = file("$rootDir/../buildscripts/checkstyle.xml")
toolVersion = "6.17" toolVersion = "6.17"
ignoreFailures = false ignoreFailures = false
if (rootProject.hasProperty("checkstyle.ignoreFailures")) { if (rootProject.hasProperty("checkstyle.ignoreFailures")) {

View File

@ -239,7 +239,7 @@ subprojects {
} }
checkstyle { checkstyle {
configFile = file("$rootDir/checkstyle.xml") configFile = file("$rootDir/buildscripts/checkstyle.xml")
toolVersion = "6.17" toolVersion = "6.17"
ignoreFailures = false ignoreFailures = false
if (rootProject.hasProperty("checkstyle.ignoreFailures")) { if (rootProject.hasProperty("checkstyle.ignoreFailures")) {

View File

@ -21,7 +21,7 @@
<property name="severity" value="error"/> <property name="severity" value="error"/>
<module name="Header"> <module name="Header">
<property name="headerFile" value="${rootDir}/checkstyle.license"/> <property name="headerFile" value="${rootDir}/buildscripts/checkstyle.license"/>
<property name="ignoreLines" value="2"/> <property name="ignoreLines" value="2"/>
<property name="fileExtensions" value="java"/> <property name="fileExtensions" value="java"/>
</module> </module>