File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes IDEs, Version Control and other tools and the fly likes PMD tool Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "PMD tool" Watch "PMD tool" New topic
Author

PMD tool

neha achrikar
Greenhorn

Joined: May 02, 2011
Posts: 3
I m using pmd in yasca static code analyzer tool. I need to define a new ruleset, which excludes the CyclomaticComplexity rule from rulesets/codesize.xml. I defined a new ruleset: ruleset.xml in the pmd-4.2.x\rulesets folder. i added this rulset in the rulesets.properties file. I build the jar file and used this jar file in yasca tool. but it did not exclude the rule. I got all warnings related to CyclomaticComplexity . Please help as this is urgent.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30548
    
152

Why not create a new XML file with the rules you actually want to point to? That way the new file has a different name and doesn't need to be inside your jar.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: PMD tool