Give PMD include/exclude filters. Same idea as in Checkstyle.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@113685 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
1 parent
1bb179001d
commit
be7204e145
5 files changed
+44
-4
No files matched your search
@@ -9,6 +9,9 @@
|
||||
<body>
|
||||
|
||||
<release version="1.1" date="in CVS">
|
||||
<action dev="epugh" type="add">
|
||||
Adding maven.pmd.includes and maven.pmd.excludes to match functionality in checkstyle plugin.
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Now respects pom.build.sourceModifications
|
||||
</action>
|
||||
|
||||
+10
-2
@@ -21,12 +21,20 @@
|
||||
</p>
|
||||
</subsection>
|
||||
|
||||
<subsection name="How to disable PMD for one projects?">
|
||||
<subsection name="How to disable PMD for one project?">
|
||||
<p>
|
||||
Assume that you have generated a DB layer having a few
|
||||
hundreds Java source files. Apart from being curious you
|
||||
don't want to have a PMD report for generated source files.
|
||||
Simple put "maven.pmd.enable=false" into your project properties
|
||||
Simply put "maven.pmd.enable=false" into your project properties.
|
||||
</p>
|
||||
</subsection>
|
||||
|
||||
<subsection name="How to disable PMD for certain files?">
|
||||
<p>
|
||||
Also assuming that you have generated a DB layer within your project.
|
||||
Simply put "maven.pmd.excludes=**/database/**" into your project
|
||||
properties.
|
||||
</p>
|
||||
</subsection>
|
||||
|
||||
|
||||
@@ -30,6 +30,30 @@
|
||||
already defined in the plugin
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.pmd.includes</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies a comma-separated list of Ant patterns to use
|
||||
when matching files in the source tree to be included in the
|
||||
PMD report. The pattern specified is relative to
|
||||
<code>${maven.src.dir}</code>. The default value is
|
||||
<code>**/*.java</code>, which matches all Java source files
|
||||
in the source tree (specified by the <code>${maven.src.dir}</code>
|
||||
property.
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.pmd.excludes</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
Specifies a comma-separated list of Ant patterns to use when
|
||||
matching files in the source tree to be excluded from the
|
||||
PMD report. The pattern specified is relative to
|
||||
<code>${maven.src.dir}</code>. The default value is to not
|
||||
exclude any files.
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
|
||||
Reference in new issue
Block a user