[
https://jira.codehaus.org/browse/MCHECKSTYLE-255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=355222#comment-355222
]
Herve Boutemy commented on MCHECKSTYLE-255:
-------------------------------------------
I suppose you're hit by some imprecise wording in output
IIUC, there are really 111 Checkstyle errors = Checkstyle rules violations with
error level
but since I defined {{checkstyle.violation.ignore}} property in Maven parent
pom, some of these errors are ignored when the mojo decides to fail or not,
then displays which violations have to be fixed
we need to improve wording about that...
> First checkstyle error is not printed in the console ouput
> ----------------------------------------------------------
>
> Key: MCHECKSTYLE-255
> URL: https://jira.codehaus.org/browse/MCHECKSTYLE-255
> Project: Maven Checkstyle Plugin
> Issue Type: Bug
> Components: checkstyle:check
> Affects Versions: 2.13
> Reporter: Andreas Gudian
> Fix For: 2.14
>
>
> 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)
> {code}
> [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]
> {code}
> 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.
--
This message was sent by Atlassian JIRA
(v6.1.6#6162)