You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (Jira)" <ji...@apache.org> on 2023/05/24 11:29:00 UTC

[jira] [Closed] (MCHECKSTYLE-412) Add option to exclude generated sources/test-sources from default source/test-source directories

     [ https://issues.apache.org/jira/browse/MCHECKSTYLE-412?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Osipov closed MCHECKSTYLE-412.
--------------------------------------
    Resolution: Fixed

Fixed with [1c271f16d695c406c3d13f52e462749653dad37e|https://gitbox.apache.org/repos/asf?p=maven-checkstyle-plugin.git&a=commit&h=1c271f16d695c406c3d13f52e462749653dad37e].

> Add option to exclude generated sources/test-sources from default source/test-source directories
> ------------------------------------------------------------------------------------------------
>
>                 Key: MCHECKSTYLE-412
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-412
>             Project: Maven Checkstyle Plugin
>          Issue Type: Improvement
>          Components: checkstyle:check, checkstyle:checkstyle
>    Affects Versions: 3.1.2
>            Reporter: Zhenlei Huang
>            Assignee: Michael Osipov
>            Priority: Minor
>             Fix For: 3.3.1
>
>
> 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.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)