java - PMD can't find rule UseSingleton -
for weird reason pmd giving error:
an internal error occurred during: "reviewcode". unable find referenced rule usesingleton; perhaps rule name mispelled?
this how rule declared in ruleset.xml:
<rule ref="rulesets/java/design.xml/usesingleton"/>
i'm using eclipse kepler 4.0.6 pmd plugin version. doing wrong?
see answer on bug report #1339 , changelog 5.3.1:
language java, ruleset design.xml: rule “usesingleton” has been renamed “useutilityclass”. see bugs #1059 , #1339.
this fixed pmd 5.3.1 , later.
for time being, you'll need manually fix ruleset file , replace usesingleton
useutilityclass
. i'd suggest shutdown eclipse, locate ruleset.xml file in workspace, change it, , start eclipse.
Comments
Post a Comment