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't import pmd ruleset in pmd eclipse plugin

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

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -