I have installed the latest pmd in my eclipse Neon. I am also able to check my code (Apex) using standard rules of PMD. But now, I have to create a new custom rule for detecting debug statements in Apex code. I was able to write xPath for it and even tested it using pmd rule designer. I tried to create rule in Rule Configuration for PMD, but getting error of ruleset. I am not able to pickup my custom xml ruleset while creating new rule.
So please need help on this. If anyone has created new custom rule via xPath or even Java, please help me. Or please let me know any previous related open discussion on my issue.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
I have installed the latest pmd in my eclipse Neon. I am also able to check my code (Apex) using standard rules of PMD. But now, I have to create a new custom rule for detecting debug statements in Apex code. I was able to write xPath for it and even tested it using pmd rule designer. I tried to create rule in Rule Configuration for PMD, but getting error of ruleset. I am not able to pickup my custom xml ruleset while creating new rule.
So please need help on this. If anyone has created new custom rule via xPath or even Java, please help me. Or please let me know any previous related open discussion on my issue.