You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincent Massol (JIRA)" <ji...@codehaus.org> on 2006/04/06 17:45:48 UTC

[jira] Created: (MCHECKSTYLE-38) checsktyle:check seems to fail on warning too

checsktyle:check seems to fail on warning too
---------------------------------------------

         Key: MCHECKSTYLE-38
         URL: http://jira.codehaus.org/browse/MCHECKSTYLE-38
     Project: Maven 2.x Checkstyle Plugin
        Type: Bug

    Versions: 2.0    
    Reporter: Vincent Massol
 Attachments: checkstyle-result.xml

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

{noformat}
[...]
[INFO] [checkstyle:check {execution: default}]
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] You have 194 checkstyle violations.
[INFO] ------------------------------------------------------------------------
{noformat}

I think the problem is that the code checks for an <error> tag whereas it should check for the "severity" attribute instead.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MCHECKSTYLE-38) checsktyle:check seems to fail on warning too

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-38?page=comments#action_63121 ] 

Brett Porter commented on MCHECKSTYLE-38:
-----------------------------------------

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?

> checsktyle:check seems to fail on warning too
> ---------------------------------------------
>
>          Key: MCHECKSTYLE-38
>          URL: http://jira.codehaus.org/browse/MCHECKSTYLE-38
>      Project: Maven 2.x Checkstyle Plugin
>         Type: Bug

>     Versions: 2.0
>     Reporter: Vincent Massol
>  Attachments: checkstyle-result.xml
>
>
> 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
> {noformat}
> [...]
> [INFO] [checkstyle:check {execution: default}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] You have 194 checkstyle violations.
> [INFO] ------------------------------------------------------------------------
> {noformat}
> I think the problem is that the code checks for an <error> tag whereas it should check for the "severity" attribute instead.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Commented: (MCHECKSTYLE-38) checsktyle:check seems to fail on warning too

Posted by "Vincent Massol (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MCHECKSTYLE-38?page=comments#action_63122 ] 

Vincent Massol commented on MCHECKSTYLE-38:
-------------------------------------------

{quote}
Is it unreasonable to fail on warnings? 
{quote}

Yes it's unreasonable as this is not the behavior of checkstyle itself. Also, Maven 1.x checkstyle plugin does not fail on warnings by default.

{quote}
Would introducing a parameter that let them choose, defaulting to the current behaviour be acceptable?
{quote}

Yes this is the right thing to do. I think the default should be not to fail on warnings though as this is what checkstyle itself is configured to do and this is also the default behavior of the maven 1.x plugin. I'll leave that up to you to decide.

Thanks


> checsktyle:check seems to fail on warning too
> ---------------------------------------------
>
>          Key: MCHECKSTYLE-38
>          URL: http://jira.codehaus.org/browse/MCHECKSTYLE-38
>      Project: Maven 2.x Checkstyle Plugin
>         Type: Bug

>     Versions: 2.0
>     Reporter: Vincent Massol
>  Attachments: checkstyle-result.xml
>
>
> 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
> {noformat}
> [...]
> [INFO] [checkstyle:check {execution: default}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] You have 194 checkstyle violations.
> [INFO] ------------------------------------------------------------------------
> {noformat}
> I think the problem is that the code checks for an <error> tag whereas it should check for the "severity" attribute instead.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (MCHECKSTYLE-38) checsktyle:check seems to fail on warning too

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCHECKSTYLE-38?page=all ]

Brett Porter updated MCHECKSTYLE-38:
------------------------------------

    Fix Version: 2.1

ok, that certainly could be considered a bug in its current state, and its not going to regress on someone (the worst is it will fail now and not fail later, but they are unlikely to be using it if it is failing). I'll include it.

Got a patch? :)


> checsktyle:check seems to fail on warning too
> ---------------------------------------------
>
>          Key: MCHECKSTYLE-38
>          URL: http://jira.codehaus.org/browse/MCHECKSTYLE-38
>      Project: Maven 2.x Checkstyle Plugin
>         Type: Bug

>     Versions: 2.0
>     Reporter: Vincent Massol
>      Fix For: 2.1
>  Attachments: checkstyle-result.xml
>
>
> 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
> {noformat}
> [...]
> [INFO] [checkstyle:check {execution: default}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] You have 194 checkstyle violations.
> [INFO] ------------------------------------------------------------------------
> {noformat}
> I think the problem is that the code checks for an <error> tag whereas it should check for the "severity" attribute instead.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (MCHECKSTYLE-38) checsktyle:check seems to fail on warning too

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MCHECKSTYLE-38?page=all ]
     
Brett Porter closed MCHECKSTYLE-38:
-----------------------------------

     Assign To: Brett Porter
    Resolution: Fixed

> checsktyle:check seems to fail on warning too
> ---------------------------------------------
>
>          Key: MCHECKSTYLE-38
>          URL: http://jira.codehaus.org/browse/MCHECKSTYLE-38
>      Project: Maven 2.x Checkstyle Plugin
>         Type: Bug

>     Versions: 2.0
>     Reporter: Vincent Massol
>     Assignee: Brett Porter
>      Fix For: 2.1
>  Attachments: checkstyle-result.xml
>
>
> 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
> {noformat}
> [...]
> [INFO] [checkstyle:check {execution: default}]
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] You have 194 checkstyle violations.
> [INFO] ------------------------------------------------------------------------
> {noformat}
> I think the problem is that the code checks for an <error> tag whereas it should check for the "severity" attribute instead.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira