Can't import PMD Ruleset in Eclipse

后端 未结 6 2236
旧时难觅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条回答
  •  梦毁少年i
    2021-02-14 03:50

    The advice from Ivan Nikolov helped me, but I had to also change one rule from:

    
      5
    
    

    to

    
      5
    
    

    Here is my PMD configuration file from sonar which is working for me with PMD-plugin 4.0.2.:

    
    
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        4
      
      
        2
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        4
      
      
        4
      
      
        3
      
      
        2
      
      
        4
      
      
        2
      
      
        3
      
      
        3
      
      
        5
      
      
        3
      
      
        3
      
      
        2
      
      
        2
      
      
        3
      
      
        3
      
      
        2
      
      
        3
      
      
        4
      
      
        4
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
        
          
        
      
      
        3
      
      
        3
      
      
        3
      
      
        3
        
          
        
      
      
        4
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        2
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        3
      
      
        4
      
      
        3
      
      
        3
      
      
        4
      
      
        3
      
    
    

提交回复
热议问题