eclipse-pmd icon indicating copy to clipboard operation
eclipse-pmd copied to clipboard

Cannot use apex rules

Open Bellingt1964 opened this issue 7 years ago • 1 comments

In Eclipse, if I try and use PMD on a Salesforce project it needs me to add a rule set. In my ruleset.xml file, if I have a single entry like this, it loads fine.

< rule ref="category/java/codestyle.xml/AbstractNaming" />

BUT, if I put in a rule from the Apex page, it says that my ruleset.xml file is invalid

< rule ref="category/apex/codestyle.xml/WhileLoopsMustUseBraces" />

This is a basic ruleset.xml file. What am I doing wrong here?

Bellingt1964 avatar Aug 24 '18 19:08 Bellingt1964

You are not doing anything wrong. eclipse-pmd does not yet support Apex rules as they require Java 8 and eclipse-pmd is still on Java 7.

acanda avatar Oct 27 '18 11:10 acanda