gradle-5.1 pmd-plugin
gradle pmdMain produces lots of errors of type DataflowAnomalyAnalysis although that rule is excluded explicitely.
from build.gradle:
plugins {
id: 'pmd'
}
pmd {
ignoreFailures = true
sourceSets = [sourceSets.main]
reportsDir = file("$project.buildDir/reports/pmd")
ruleSetFiles = files("config/pmd/ruleset.xml")
}
from ruleset.xml (only rule):
< rule ref="category/java/errorprone.xml">
< exclude name="DataflowAnomalyAnalysis"/>
< /rule>
How can i REALLY exclude that rule?