Skip to content
Snippets Groups Projects
Commit 6432d7bf authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Refined the pmd rulesets to remove false positives.

git-svn-id: svn://svn.syncleus.com/dANN/trunk@390 6ae8b97b-f314-0410-8212-aecf10b92ded
parent 413ccac4
No related branches found
No related tags found
No related merge requests found
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
<target name="pmd"> <target name="pmd">
<mkdir dir="build/pmd"/> <mkdir dir="build/pmd"/>
<pmd rulesetfiles="basic,unusedcode,codesize,clone,coupling,design,finalizers,imports,junit,logging-java,logging-jakarta-commons,migrating,naming,optimizations,strictexception,strings,sunsecure,unusedcode"> <pmd rulesetfiles="pmd.xml">
<formatter type="xml" toFile="build/pmd/pmd-report.xml"/> <formatter type="xml" toFile="build/pmd/pmd-report.xml"/>
<fileset dir="src/"> <fileset dir="src/">
<include name="**/*.java"/> <include name="**/*.java"/>
......
pmd.xml 0 → 100644
<?xml version="1.0"?>
<ruleset name="Custom ruleset"
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>
Standard ruleset.
</description>
<rule ref="rulesets/sunsecure.xml"/>
<rule ref="rulesets/logging-java.xml"/>
<rule ref="rulesets/logging-jakarta-commons.xml"/>
<rule ref="rulesets/migrating.xml">
<exclude name="ReplaceVectorWithList"/>
<exclude name="ReplaceHashtableWithMap"/>
</rule>
<rule ref="rulesets/naming.xml">
<exclude name="LongVariable"/>
</rule>
<rule ref="rulesets/optimizations.xml"/>
<rule ref="rulesets/strictexception.xml">
<exclude name="AvoidThrowingRawExceptionTypes"/>
</rule>
<rule ref="rulesets/strings.xml"/>
<rule ref="rulesets/basic.xml"/>
<rule ref="rulesets/unusedcode.xml"/>
<rule ref="rulesets/codesize.xml"/>
<rule ref="rulesets/clone.xml">
<exclude name="CloneThrowsCloneNotSupportedException"/>
</rule>
<rule ref="rulesets/coupling.xml"/>
<rule ref="rulesets/design.xml">
<exclude name="EmptyMethodInAbstractClassShouldBeAbstract"/>
</rule>
<rule ref="rulesets/finalizers.xml"/>
<rule ref="rulesets/imports.xml"/>
<rule ref="rulesets/junit.xml">
<exclude name="JUnitTestsShouldIncludeAssert"/>
</rule>
</ruleset>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment