Please allow me to explain the difficulty I face when using PMD Report.
Firstly
-------
If I need to suppress "OnlyOneReturn" under the Controversial Rules I need to specify it as <exclude name="OnlyOneReturnRule"/>
Where as when I need to suppress "CallSuperInConstructor" under the Controversial Rules I need to specify it as <exclude name="CallSuperInConstructor"/>
As you can see there is no document/consistency on the naming of the actual rules.
In "OnlyOneReturn" I need to actually exclude "OnlyOneReturnRule".
On the other hand for CallSuperInConstructor it is not a problem as the rule itself is called "CallSuperInConstructor".
Secondly
--------
Controversial Rules is contained in rulesets/controversial.xml Would Security Code Guidelines be in rulesets/SecurityCodeGuidelines.xml
If I am incorrect then I am sorry for creating the confusion and would much appreciate clarification on the correct usage or a methodical approach to finding the rules and rule set.
If I am correct, then I feel that the "rulesets/SecurityCodeGuidelines.xml" should be included as part of the heading. For example "Security Code Guidelines : rulesets/SecurityCodeGuidelines.xml"
and the rule to be the name itself. ie instead of calling OnlyOneReturn" under the Controversial Rules, call it OnlyOneReturnRule.
Thanks
Lakshman
I don't see the interest. You can reopen it with more explanation if you really want it.
I added a link on each error to explain it. Isn't it enough ?