maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MCHECKSTYLE-291) Change format of violation message
Date Sun, 30 Aug 2015 19:31:45 GMT

    [ https://issues.apache.org/jira/browse/MCHECKSTYLE-291?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14721690#comment-14721690
] 

Michael Osipov commented on MCHECKSTYLE-291:
--------------------------------------------

I have noticed recently, that {{javac}} produces the following output:

{noformat}
Foo.java:[3,4]
{noformat}

Iam about to apply this well-known pattern.

> Change format of violation message
> ----------------------------------
>
>                 Key: MCHECKSTYLE-291
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-291
>             Project: Maven Checkstyle Plugin
>          Issue Type: Improvement
>    Affects Versions: 2.15
>            Reporter: Michal Kordas
>            Assignee: Michael Osipov
>             Fix For: 2.17
>
>
> For example on LineLength violation in console I get the following error:
> _\[ERROR] src\test\java\com\test\SampleTest.java *\[89]* (sizes) LineLength: Line is
longer than 180 characters (found 202)._
> It would be better to have colon and line number instead of braces, so that I can directly
paste the reference to IntelliJ and go to affected line:
> _\[ERROR] src\test\java\com\test\SampleTest.java *:89* (sizes) LineLength: Line is longer
than 180 characters (found 202)._
> The same format has exception stacktrace in Java.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message