Bukama opened a new pull request, #762: URL: https://github.com/apache/maven-checkstyle-plugin/pull/762
The parameters only said "names filter of the source files", which made patterns like src/**/*.java look reasonable although they match nothing: the patterns are matched against the path relative to each source (or resource) directory, not relative to the project base directory. Document this for includes, excludes, resourceIncludes and resourceExcludes in both the check mojo and the reports, and point to excludeGeneratedSources for skipping generated sources. Nothing verified so far that includes and excludes actually select files. The new scenario checks that both are matched against the path relative to each source directory: the default checks every Java file, a source-relative pattern selects only matching files, a basedir-relative pattern such as src/**/*.java selects none, and excludes filter the same way. Co-Authored-By: Claude Opus 5.5 <[email protected]> closes #332 --- To make clear that you license your contribution under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) check one of the following: - [ ] I hereby declare this contribution to be licensed under the [Apache License Version 2.0, January 2004](https://www.apache.org/licenses/LICENSE-2.0) - [x] I hereby declare that I have filed an [Apache Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
