Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0
-
Fix Version/s: 2.1
-
Labels:None
-
Number of attachments :
Description
failOnViolation=true is supposed to fail only on errors but it seems to be failing on warnings too. See attached checkstyle result file which leads to
[...]
[INFO] [checkstyle:check {execution: default}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] You have 194 checkstyle violations.
[INFO] ------------------------------------------------------------------------
I think the problem is that the code checks for an <error> tag whereas it should check for the "severity" attribute instead.
Issue Links
- is related to
-
MCHECKSTYLE-45
It should be possible to configure checkstyle:check to fail on "warnings".
-
since this was in a release version, I'm not going to change the pending RC which was already voted on.
Is it unreasonable to fail on warnings? Would introducing a parameter that let them choose, defaulting to the current behaviour be acceptable?