Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.1.2
-
None
Description
The default value of parameter `sourceDirectories` isĀ `${project.compileSourceRoots}`, which includes generated sources. And for `testSourceDirectories` is `${project.testCompileSourceRoots}` which includes generated test sources.
The major usage of checkstyle is to enforce rules on human written codes and docs. The generated ones commonly come from third-party templates or scripts, and they probably do not meet user defined checkstyle rules.
We can bravely conclude exclude the generated sources / test sources directories and the impact should be trivial, although it is a breaking change.
Attachments
Issue Links
- is related to
-
MCHECKSTYLE-444 Support exclusion of generated (test) resources
- Open
- links to