We have pmdMain configuration like this:
pmdMain {
ruleSets = []
ruleSetFiles = files([
“$projectRoot/buildtools/pmd-rules/strings.xml”,
“$projectRoot/buildtools/pmd-rules/strictexception.xml”,
“$projectRoot/buildtools/pmd-rules/optimizations.xml”,
“$projectRoot/buildtools/pmd-rules/migrating.xml”,
“$projectRoot/buildtools/pmd-rules/logging-java.xml”,
“$projectRoot/buildtools/pmd-rules/imports.xml”,
“$projectRoot/buildtools/pmd-rules/design.xml”,
“$projectRoot/buildtools/pmd-rules/coupling.xml”,
“$projectRoot/buildtools/pmd-rules/controversial.xml”,
“$projectRoot/buildtools/pmd-rules/codesize.xml”,
“$projectRoot/buildtools/pmd-rules/clone.xml”,
“$projectRoot/buildtools/pmd-rules/basic.xml”
])
}
After 1.5 upgrade builds have started failing with rules not included in our rule set files. For example: [Basic Rules.CollapsibleIfStatements] - These nested if statements could be combined
This rule is not defined in any of our ruleset files. Any help is appreciated.