Can't import PMD Ruleset in Eclipse -
i use same ruleset in ide (eclipse) sonar profile.
i got pmd xml ruleset sonar permalinks , import pmd eclipse plugin when try it, "ok" button desactivated ...
can me ?
the problem sonar exporting ruleset v4.x format , eclipse plugin expects them in v5.x format.
try changing rules from:
<rule ref="rulesets/basic.xml/unusednullcheckinequals"> <priority>3</priority> </rule>
to
<rule ref="rulesets/java/basic.xml/unusednullcheckinequals"> <priority>3</priority> </rule>
please note ref attribute. simple find , replace work out fine you.
Comments
Post a Comment