pmd_ruleset.xml revision 8c96c0b4587843dd3c027d3acb7dc6f016c54d6a
<?xml version="1.0" encoding="UTF-8"?>
<ruleset name="Custom ruleset for OpenGrok"
xmlns="http://pmd.sf.net/ruleset/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
<description>
Settings for PMD, tuned for the OpenGrok project.
</description>
<rule ref="rulesets/strings.xml"/>
<rule ref="rulesets/braces.xml"/>
<rule ref="rulesets/design.xml"/>
<rule ref="rulesets/finalizers.xml"/>
<rule ref="rulesets/imports.xml"/>
<rule ref="rulesets/logging-java.xml"/>
<rule ref="rulesets/migrating.xml"/>
<rule ref="rulesets/optimizations.xml">
<exclude name="AvoidInstantiatingObjectsInLoops"/>
<!-- Enable the following when we have fever reported warnings -->
<exclude name="LocalVariableCouldBeFinal"/>
<exclude name="MethodArgumentCouldBeFinal"/>
</rule>
<rule ref="rulesets/strictexception.xml"/>
<rule ref="rulesets/strings.xml"/>
<rule ref="rulesets/sunsecure.xml"/>
<rule ref="rulesets/typeresolution.xml"/>
<rule ref="rulesets/unusedcode.xml"/>
</ruleset>