Solved

exclude packages in pmd rules

Posted on 2013-10-24
4
570 Views
Last Modified: 2013-11-13
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
Comment
  • 2
  • 2
4 Comments
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 39599756
using maven plugin
0
 
LVL 35

Expert Comment

by:mccarl
ID: 39604744
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
 
LVL 20

Author Comment

by:Sathish David Kumar N
ID: 39611265
but it wont take the property file
0
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
ID: 39613132
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
This video teaches viewers about errors in exception handling.

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question