Uploaded image for project: 'Maven Checkstyle Plugin'
  1. Maven Checkstyle Plugin
  2. MCHECKSTYLE-394

Add support for scanning only changed files

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      Gradle plugin offers quite easy setup with git-ls to scan only the changed files for violations.

      The example githook here is obviously unacceptable 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:

       

      mvn -Dcheckstyle.includes='path/to/class.java' checkstyle:check
      

       

      For some reason, the below thing works, but the above thing doesn't:

      mvn -Dcheckstyle.includes='**/src/**/*.java' checkstyle:check

      Attachments

        Activity

          People

            Unassigned Unassigned
            warden Radek Antoniuk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: