pmd_ruleset.xml revision fcb68bae47907ba23c545e379c81c3ee6e19f778
<?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"/>
<!-- enable bellow to push people to write asserts which are easier to understand -->
<exclude name="JUnitAssertionsShouldIncludeMessage"/>
</rule>
<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">
<!-- <properties>
<property name="IgnoreJUnitCompletely" value="true"/>
</properties> -->
</rule>
<rule ref="rulesets/unusedcode.xml"/>
</ruleset>