Menu

Property examples on Suppressing Warnings page incorrect (out of date?)

Anonymous
2014-06-06
2014-07-20
  • Anonymous

    Anonymous - 2014-06-06

    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.

     
  • Andreas Dangel

    Andreas Dangel - 2014-07-20

    Thank you! I'll fix it.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.