?
Solved

exclude packages in pmd rules

Posted on 2013-10-24
4
Medium Priority
?
790 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 20

Author Comment

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

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 36

Accepted Solution

by:
mccarl earned 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Suggested Courses
Course of the Month10 days, 3 hours left to enroll

762 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