This is an automated email from the ASF dual-hosted git repository. elharo pushed a commit to branch 220 in repository https://gitbox.apache.org/repos/asf/maven-pmd-plugin.git
commit 10ebfcf6a22173c79edfe255267da71a45030992 Author: Elliotte Rusty Harold <[email protected]> AuthorDate: Sat Jul 5 08:54:37 2025 -0400 Document that excludes takes priority over includes --- src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java b/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java index 2349f5d..416349d 100644 --- a/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java +++ b/src/main/java/org/apache/maven/plugins/pmd/AbstractPmdReport.java @@ -97,6 +97,7 @@ public abstract class AbstractPmdReport extends AbstractMavenReport { * exclusion patterns only operate on the path of a source file relative to its source root directory. In other * words, files are excluded based on their package and/or class name. If you want to exclude entire source root * directories, use the parameter <code>excludeRoots</code> instead. + * If a file matches both includes and excludes, it is excluded. * * @since 2.2 */ @@ -105,7 +106,7 @@ public abstract class AbstractPmdReport extends AbstractMavenReport { /** * A list of files to check. Can contain Ant-style wildcards and double wildcards. Defaults to - * **\/*.java. + * **\/*.java. If a file matches both includes and excludes, it is excluded. * * @since 2.2 */
