File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

PMD tool

neha achrikar

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 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
author & internet detective

Joined: May 26, 2003
Posts: 33117

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.

[OCA 8 book] [Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
I agree. Here's the link:
subject: PMD tool
It's not a secret anymore!