Solved

exclude packages in pmd rules

Posted on 2013-10-24
4
484 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
Comment Utility
using maven plugin
0
 
LVL 35

Expert Comment

by:mccarl
Comment Utility
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
Comment Utility
but it wont take the property file
0
 
LVL 35

Accepted Solution

by:
mccarl earned 500 total points
Comment Utility
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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
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:

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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now