acanda / eclipse-pmd

eclipse-pmd has been moved to
https://github.com/eclipse-pmd/eclipse-pmd
Other
21 stars 10 forks source link

Cannot use apex rules #57

Open Bellingt1964 opened 6 years ago

Bellingt1964 commented 6 years ago

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?

acanda commented 6 years ago

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.