Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-190

Seperate CPD configuration from PMD i.e. exclude/include paths

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Auto Closed
    • 3.2
    • None
    • CPD
    • None
    • n/a

    Description

      CPD highlights lots of warnings in our jpa entity packages and also out dto builders. This is correct lots of tables have the same fields. We can exclude them but this also excludes pmd, ideally we just want to exclude the following paths from CPD but still have PMD checked on them.

      */data/entity/.java
      */data/builder/.java

      I see two options, either both pmd and cpd get their own nested <configuration>, or cpd it split into it's own top level plugin. I realise splitting the plugin is a lot of work so giving the option to have their own nest configuration might be simpler...

      We have about 1000 cpd warnings, of which 90% are specifically around jpa entities or dto builders. Jenkins reports issues but we have the threshold so high it makes it useless...

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nhoj.patrick John Patrick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: