Radek Antoniuk created MCHECKSTYLE-394:
------------------------------------------

             Summary: 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


[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)

Reply via email to