You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2015/05/12 14:39:11 UTC
svn commit: r1678923 -
/maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/maven.xml
Author: dennisl
Date: Tue May 12 12:39:11 2015
New Revision: 1678923
URL: http://svn.apache.org/r1678923
Log:
[MPMD-208] Warning about deprecated Rule name when using rulesets/maven.xml
Modify our ruleset by adding the new rulesets empty.xml and unnecessary.xml, which contain rules that where previously found in basic.xml.
Modified:
maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/maven.xml
Modified: maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/maven.xml
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/maven.xml?rev=1678923&r1=1678922&r2=1678923&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/maven.xml (original)
+++ maven/plugins/trunk/maven-pmd-plugin/src/main/resources/rulesets/maven.xml Tue May 12 12:39:11 2015
@@ -32,15 +32,19 @@ under the License.
This ruleset checks the code for discouraged programming constructs.
</description>
- <rule ref="rulesets/java/basic.xml">
+ <rule ref="rulesets/java/basic.xml"/>
+
+ <rule ref="rulesets/java/empty.xml">
<exclude name="EmptyCatchBlock"/>
</rule>
- <rule ref="rulesets/java/basic.xml/EmptyCatchBlock">
+ <rule ref="rulesets/java/empty.xml/EmptyCatchBlock">
<properties>
<property name="allowCommentedBlocks" value="true"/>
</properties>
</rule>
+ <rule ref="rulesets/java/unnecessary.xml"/>
+
<rule ref="rulesets/java/unusedcode.xml"/>
<rule ref="rulesets/java/imports.xml"/>