Menu

PMD detecting package and import statements as duplicate code

2015-01-08
2015-02-24
  • Anand Raman

    Anand Raman - 2015-01-08

    Is there any configuration in PMD to prevent it from identifying package statements and import statements as duplicate code? Thanks in advance.

     
  • Andreas Dangel

    Andreas Dangel - 2015-02-24

    I don't see anything like this - there are a couple of options already for java:
    http://pmd.sourceforge.net/pmd-5.2.3/usage/cpd-usage.html

    Already existing options:

    • ignoreLiterals
    • ignoreIdentifiers
    • ignoreAnnotations

    A new option called ignoreImports would fit into this list.

    Could you please create a feature request for this under "Issues"?

     

Log in to post a comment.