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.