Property examples on Suppressing Warnings page incorrect (out of date?)
A source code analyzer
Brought to you by:
adangel,
juansotuyo
On this page:
http://pmd.sourceforge.net/pmd-5.1.1/suppressing.html
The code fragments showing how to add a violation suppression regex or xpath do not work in the current version of pmd. I get an error message about the property element found inside the rule element, and Googling the error got me nowhere. Well, almost nowhere -- it got me the source code, and based on skimming the source code I figured out the solution myself: if instead I put the property element inside a properties element inside the rule element, it works. Should I submit a bug report for this? I would guess that the web page was correct at some point in the past and didn't get updated when the relevant code did.
Thank you! I'll fix it.