When you create a new ruleset.xml file you must list all
the rules you want to include.
Most of the time, I find the default ruleset very useful
and I rather want to specify the rules I want to exclude.
This way, I can benefit from added new rules in new
releases of PMD.
Tom Copeland proposed a syntax that would fit my
needs:
================
<?xml version="1.0"?>
<ruleset name="Favorites">
<description>Good stuff</description>
<rule ref="rulesets/braces.xml/">
<exclude name="WhileLoopsMustUseBracesRule"/>
</rule>
</ruleset>
================
Thanks,
Gael
Logged In: YES
user_id=5159
Cool, thanks Gael.
tom
Logged In: YES
user_id=5159
Working on this now.
Logged In: YES
user_id=5159
Hi Gael -
OK, this is checked into CVS now.... you can download a jar
file containing this feature here:
http://infoether.com/~tom/pmd-1.05.jar
Thanks for the suggestion,
tom
Logged In: YES
user_id=5159
Should have marked it as pending...
Logged In: YES
user_id=5159
Fixed in 1.1.