Skip to content

Commit

Permalink
Fix the checkstyle config to not break other modules
Browse files Browse the repository at this point in the history
  • Loading branch information
jabbink committed Jul 24, 2016
1 parent 5a7fcc4 commit c7e4b65
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ protobuf {
}
}

def checkstyleOutputDir = "${project.rootDir}/build/reports/checkstyle/"
def checkstyleOutputDir = "${project.projectDir}/build/reports/checkstyle/"

checkstyle {
toolVersion = '7.0'
configFile = file("${project.rootDir}/config/checkstyle.xml")
configFile = file("${project.projectDir}/config/checkstyle.xml")
configProperties = [ "suppressionFile" : file("${project.projectDir}/config/suppressions.xml")]
reportsDir = file(checkstyleOutputDir)

ignoreFailures = false
Expand Down Expand Up @@ -115,4 +116,4 @@ task sourcesJar(type: Jar) {

artifacts {
archives sourcesJar
}
}
4 changes: 2 additions & 2 deletions config/checkstyle.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<module name = "Checker">
<module name="SuppressionFilter">
<property name="file" value="config/suppressions.xml"/>
<property name="file" value="${suppressionFile}"/>
</module>

<property name="charset" value="UTF-8"/>
Expand Down Expand Up @@ -204,4 +204,4 @@
</module>
<module name="CommentsIndentation"/>
</module>
</module>
</module>

0 comments on commit c7e4b65

Please sign in to comment.