You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Radek Antoniuk (Jira)" <ji...@apache.org> on 2020/04/29 15:54:00 UTC

[jira] [Commented] (MCHECKSTYLE-394) Add support for scanning only changed files

    [ https://issues.apache.org/jira/browse/MCHECKSTYLE-394?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17095570#comment-17095570 ] 

Radek Antoniuk commented on MCHECKSTYLE-394:
--------------------------------------------

It would be great to see the example githook plugin referenced also in the FAQ section on the maven plugin's page :) 

> Add support for scanning only changed files
> -------------------------------------------
>
>                 Key: MCHECKSTYLE-394
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-394
>             Project: Maven Checkstyle Plugin
>          Issue Type: Task
>            Reporter: Radek Antoniuk
>            Priority: Minor
>
> [Gradle plugin offers quite easy setup with git-ls|https://ebaytech.berlin/checkstyle-on-changed-files-with-gradle-1619e49dbe4e] to scan only the changed files for violations.
> [The example githook here is obviously unacceptable|https://github.com/checkstyle/contribution/blob/master/hooks/git-pre-commit-hook.pl] as it requires the JAR file to be present somewhere which is redundant when checkstyle is configured in project's POM.
> Would it be possible to add similar configurability to maven plugin to support something like:
>  
> {code:java}
> mvn -Dcheckstyle.includes='path/to/class.java' checkstyle:check
> {code}
>  
> For some reason, the below thing works, but the above thing doesn't:
> {noformat}
> mvn -Dcheckstyle.includes='**/src/**/*.java' checkstyle:check{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)