Menu

#1284 Exclude pattern does not affect some rules

PMD-5.2.2
closed
None
PMD
3-Major
Bug
5.1.1
2014-12-03
2014-11-17
msteiger
No

We're using the exclude pattern to ignore auto-generated files like this:

<exclude-pattern>.*/org.terasology.protobuf/.*</exclude-pattern>

The pattern should match and it basically works -- the number of issues goes down by several hundreds, but a few warning types remain. These are:

CollapsibleIfStatements
EmptyIfStmt
UnnecessaryFinalModifier
UselessParentheses

Details can be found in our Jenkins build, the PMD config file is also available online.

It seems as if the four rules do not respect the exclude-pattern statement.

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-11-27
    • status: open --> more-info-needed
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-Next
     
  • msteiger

    msteiger - 2014-11-28

    Awesome! That did it. Thanks!

     
  • Andreas Dangel

    Andreas Dangel - 2014-11-28
    • status: more-info-needed --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB