You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mf...@apache.org on 2014/11/06 21:26:07 UTC
svn commit: r1637209 -
/maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/usingRuleSets.apt.vm
Author: mfriedenhagen
Date: Thu Nov 6 20:26:06 2014
New Revision: 1637209
URL: http://svn.apache.org/r1637209
Log:
MPMD-191: Update to PMD 5.2.1 - Update documentation.
* Because PMD is now modularized, there is no overview page for
Java and Javascript rules anymore.
* Give the hint, that exclusions do not end with `Rule` anymore.
Modified:
maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/usingRuleSets.apt.vm
Modified: maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/usingRuleSets.apt.vm
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/usingRuleSets.apt.vm?rev=1637209&r1=1637208&r2=1637209&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/usingRuleSets.apt.vm (original)
+++ maven/plugins/trunk/maven-pmd-plugin/src/site/apt/examples/usingRuleSets.apt.vm Thu Nov 6 20:26:06 2014
@@ -29,8 +29,10 @@
Using Rule Sets
The PMD plugin uses three default rule sets: <basic.xml>, <unusedcode.xml> and <imports.xml>. These rule sets are
- bundled in the PMD code analysis tool (see the {{{http://pmd.sourceforge.net/pmd-${pmdVersion}/rules/index.html}ruleset index}}). To use other
- rule sets, you can configure it in the plugin as shown below.
+ bundled in the PMD code analysis tool
+ (see the {{{http://pmd.sourceforge.net/pmd-${pmdVersion}/pmd-java/rules/index.html}ruleset index for java}} and
+ the {{{http://pmd.sourceforge.net/pmd-${pmdVersion}/pmd-javascript/rules/index.html}ruleset index for javascript}}).
+ To use other rule sets, you can configure it in the plugin as shown below.
The rule sets may reside in the classpath, filesystem or at a URL. For rule sets that are bundled with the PMD tool,
you do not need to specificy the absolute path of the file. It will be resolved by the plugin. But if the rule set is a
@@ -41,6 +43,11 @@ Using Rule Sets
<<</rulesets/xyz.xml>>> to <<</rulesets/java/xyz.xml>>>. So when upgrading to
Maven PMD Plugin 3.0 you may need to alter your plugin configuration.
+ <<Note:>> Starting with PMD 5.2.0 and Maven PMD Plugin 3.3 you need to include a dependency for javascript
+ in the report section, see {{{./javascriptReport.html}Analyzing JavaScript Code}}. Additionally when
+ {{{http://pmd.sourceforge.net/pmd-${pmdVersion}/customizing/howtomakearuleset.html}excluding rules}},
+ the rule path does not end on <<<Rule>>> anymore.
+
+-----+
<project>
...