Skip to content

Commit 10ebfcf

Browse files
committed
Document that excludes takes priority over includes
1 parent 2bc5682 commit 10ebfcf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ public abstract class AbstractPmdReport extends AbstractMavenReport {
9797
* exclusion patterns only operate on the path of a source file relative to its source root directory. In other
9898
* words, files are excluded based on their package and/or class name. If you want to exclude entire source root
9999
* directories, use the parameter <code>excludeRoots</code> instead.
100+
* If a file matches both includes and excludes, it is excluded.
100101
*
101102
* @since 2.2
102103
*/
@@ -105,7 +106,7 @@ public abstract class AbstractPmdReport extends AbstractMavenReport {
105106

106107
/**
107108
* A list of files to check. Can contain Ant-style wildcards and double wildcards. Defaults to
108-
* **\/*.java.
109+
* **\/*.java. If a file matches both includes and excludes, it is excluded.
109110
*
110111
* @since 2.2
111112
*/

0 commit comments

Comments
 (0)