You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Vincenzo Mancini (JIRA)" <ji...@codehaus.org> on 2010/10/28 17:01:06 UTC

[jira] Created: (MCHECKSTYLE-148) Would be nice to see the name of CHECK together with its output

Would be nice to see the name of CHECK together with its output
---------------------------------------------------------------

                 Key: MCHECKSTYLE-148
                 URL: http://jira.codehaus.org/browse/MCHECKSTYLE-148
             Project: Maven 2.x Checkstyle Plugin
          Issue Type: Improvement
         Environment: maven-3
            Reporter: Vincenzo Mancini


This is what I see in my report (for example):

{noformat}
[...]
[ERROR] Abc.java[77:5] Class should define a constructor.
[ERROR] Abc.java[88:5] Class should define a constructor.
[ERROR] Abc.java[99:8] Unused @param tag for 's'.
[...]
{noformat}

It's difficult to understand which particular checkstyle check produced these lines. Would be nice to have a configuration option in the plugin, which will let me turn such extra logging ON and OFF, and I would see something like this:

{noformat}
[...]
[ERROR] Abc.java[77:5] Class should define a constructor. (com.puppycrawl.tools.checkstyle.checks...)
[ERROR] Abc.java[88:5] Class should define a constructor. (com.puppycrawl.tools.checkstyle.checks...)
[ERROR] Abc.java[99:8] Unused @param tag for 's'. (com.puppycrawl.tools.checkstyle.checks...)
[...]
{noformat}

This logging will help me to find (!) and re-configure my checks very fast.

-- 
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