Affects PMD Version: 6.13.0
Description:
When a PMD5 ruleset is used, that excludes a rule, that has been both moved and renamed, then the ruleset can't be loaded anymore.
Stacktracejava.lang.IllegalArgumentException: Unable to exclude rules [GuardLogStatement]; perhaps the rule name is mispelled?
at net.sourceforge.pmd.RuleSetFactory.parseRuleSetReferenceNode(RuleSetFactory.java:536)
at net.sourceforge.pmd.RuleSetFactory.parseRuleNode(RuleSetFactory.java:459)
at net.sourceforge.pmd.RuleSetFactory.parseRuleSetNode(RuleSetFactory.java:367)
at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:214)
at net.sourceforge.pmd.RuleSetFactory.createRuleSet(RuleSetFactory.java:209)
...
Code Sample demonstrating the issue:
<rule ref="rulesets/java/logging-java.xml">
<exclude name="GuardLogStatementJavaUtil"/>
</rule>
The issue originated here: m2e-code-quality/m2e-code-quality#213
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4