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

First checkstyle error is not printed in the console ouput

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.13
    • 2.14
    • checkstyle:check
    • None

    Description

      During fixing the checkstyle errors for surefire, I noticed that the very first checkstyle error is not printed on the console ouput.

      For example, the checkstyle-result.xml contains 111 errors for surefire-common (in my local version) and for AbstractSurefireMojo.java, there are two errors (file has too many lines, and @Nonnull at the wrong position)

      [INFO] There are 111 checkstyle errors.
      [ERROR] AbstractSurefireMojo.java[2296:16] (modifier) ModifierOrder: '@Nonnull' Annotation-Modifier sollte vor den anderen Modifie
      rn stehen.
      [ERROR] BooterSerializer.java[78:114] (whitespace) ParenPad: Vor ')' befindet sich kein Leerzeichen.
      
      ... nothing more about AbstractSurefireMojo.java
      
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD FAILURE
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 5.825s
      [INFO] Finished at: Sat Oct 25 20:26:42 CEST 2014
      [INFO] Final Memory: 11M/109M
      [INFO] ------------------------------------------------------------------------
      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-checkstyle-plugin:2.13:check (default-cli) on project maven-surefire
      -common: You have 101 Checkstyle violations. -> [Help 1]
      

      The summary about the failing build says something about 101 checkstyle violations, not 111 errors as above.

      I also noticed that if I fix all but one checkstyle error, the module passes the test. The output contains just the line "[INFO] There are 1 checkstyle errors." for that module and then continues with the next build.

      Attachments

        Activity

          People

            hboutemy Herve Boutemy
            agudian Andreas Gudian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: