I want to ignore a specific folder (named generated-sources) from my checkstyle reports, because they are generated.
I\'m using eclipse-cs for displaying my violatio
As pointed by Thomas Welsch in his answer, there appears to be a problem with using relative pathname for the suppression xml file.
For gradle builds, This gist suggests a workaround:
in build.gradle
:
checkstyle {
// use one common config file for all subprojects
configFile = project(':').file('config/checkstyle/checkstyle.xml')
configProperties = [ "suppressionFile" : project(':').file('config/checkstyle/suppressions.xml')]
}
in checkstyle.xml
:
(the default value allows IDE plugins, that do not have the gradle variable sorted out, to work correctly)