• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 997
  • Last Modified:

exclude packages in pmd rules

Hi ,

I need to exculde one package from PMD Check. because that code is automatically  generated  code so i dodnt to check the package for code review .

How to write those  exculde rules  in pmd_rules.xml file
0
Sathish David  Kumar N
Asked:
Sathish David  Kumar N
  • 2
  • 2
1 Solution
 
Sathish David Kumar NAuthor Commented:
using maven plugin
0
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
The exact format to use is given in the documentation for the maven_pmd_plugin.

http://maven.apache.org/plugins/maven-pmd-plugin/examples/violation-exclusions.html

Have you tried that and are having issues with it? Or are you saying that you would like it to be dynamic for whatever class may come into that package?
0
 
Sathish David Kumar NAuthor Commented:
but it wont take the property file
0
 
mccarlIT Business Systems Analyst / Software DeveloperCommented:
but it wont take the property file
Can you give me anything more than that? Do you get an error, does it just silently ignore it? Can you post your pom.xml file and the properties file?

Also, if you aren't getting an error, can you try running maven with the debug flag and see if it gives you any further clue as to what is happening?
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now