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

The checkstyle plugin should report the number of all violations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      When there is an error, the build looks like:

      [INFO] There is 1 error reported by Checkstyle 8.41.1 with config/maven_checks.xml ruleset.
      [ERROR] src/main/java/org/apache/maven/execution/BuildResumptionDataRepository.java:[54,30] (whitespace) ParenPad: '(' is not followed by whitespace.
       

      and when this error is fixed, the build then looks like:

      [INFO] You have 0 Checkstyle violations.
      

      The problem is that checkstyle never caches the results for files with violations, even at info or warning level. This cause the files to be always processed, without the user really being aware of any problem.

      The number of violations at info or warning level should also be printed. In addition, if there are errors, the output should be logged at WARN level.

      Attachments

        Activity

          People

            Unassigned Unassigned
            gnodet Guillaume Nodet
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: