Can't import PMD Ruleset in Eclipse

后端 未结 6 2420
旧时难觅i
旧时难觅i 2021-02-14 03:24

I would like to use the same Ruleset in my IDE (Eclipse) that my Sonar profile.

I got the PMD XML ruleset from the Sonar Permalinks and would like to import it into my P

6条回答
  •  耶瑟儿~
    2021-02-14 04:16

    The problem could be that Sonar is exporting your ruleset for v4.x format and your Eclipse plugin expects them in v5.x format.

    Try changing your rules from:

    
        3
    
    

    to

    
        3
    
    

    Please note the ref attribute. A simple find and replace all will work out fine for you.

提交回复
热议问题