Solved

exclude packages in pmd rules

Posted on 2013-10-24
4
727 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 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

728 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