You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mp...@apache.org on 2006/04/04 04:59:20 UTC
svn commit: r391217 -
/maven/plugins/trunk/maven-pmd-plugin/src/site/apt/howto.apt
Author: mperham
Date: Mon Apr 3 19:59:19 2006
New Revision: 391217
URL: http://svn.apache.org/viewcvs?rev=391217&view=rev
Log:
Stub out check goal docs
Modified:
maven/plugins/trunk/maven-pmd-plugin/src/site/apt/howto.apt
Modified: maven/plugins/trunk/maven-pmd-plugin/src/site/apt/howto.apt
URL: http://svn.apache.org/viewcvs/maven/plugins/trunk/maven-pmd-plugin/src/site/apt/howto.apt?rev=391217&r1=391216&r2=391217&view=diff
==============================================================================
--- maven/plugins/trunk/maven-pmd-plugin/src/site/apt/howto.apt (original)
+++ maven/plugins/trunk/maven-pmd-plugin/src/site/apt/howto.apt Mon Apr 3 19:59:19 2006
@@ -13,6 +13,10 @@
* pmd:cpd - run PMD's Copy/Paste Detector tool and generate a report
+ * pmd:pmd-check - verify the PMD report is empty and fail the build if it is not
+
+ * pmd:cpd-check - verify the CPD report is empty and fail the build if it is not
+
Configuration
The PMD and CPD reports share the same configuration. For example, the following
@@ -56,3 +60,29 @@
</reporting>
+---------
+Violation Checking
+
+ The pmd-check and cpd-check will scan for the PMD or CPD report output respectively and throw an exception
+ if the report contains any entries. This allows you to configure your build to fail if the check goal fails
+ and, in doing so, enforce your own custom code quality rules.
+
+ TODO Please give example of how to configure build element to run CPD and PMD check goals. Something like this:
+
++--------
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-pmd-plugin</artifactId>
+ <executions>
+ <execution>
+ <goals>
+ <goal>cpd</goal>
+ <goal>cpd-check</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
++---------
\ No newline at end of file