Open Bellingt1964 opened 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?
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.
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.
BUT, if I put in a rule from the Apex page, it says that my ruleset.xml file is invalid
This is a basic ruleset.xml file. What am I doing wrong here?