You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2015/08/30 22:16:15 UTC
svn commit: r1700157 -
/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java
Author: michaelo
Date: Sun Aug 30 20:16:15 2015
New Revision: 1700157
URL: http://svn.apache.org/r1700157
Log:
[MCHECKSTYLE-291] Change format of violation message
Modified:
maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java
Modified: maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java?rev=1700157&r1=1700156&r2=1700157&view=diff
==============================================================================
--- maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java (original)
+++ maven/plugins/trunk/maven-checkstyle-plugin/src/main/java/org/apache/maven/plugin/checkstyle/CheckstyleViolationCheckMojo.java Sun Aug 30 20:16:15 2015
@@ -103,7 +103,7 @@ public class CheckstyleViolationCheckMoj
/**
* Fail the build on a violation. The goal checks for the violations
- * after logging them (if {@link #logViolationsToConsole} is 'true').
+ * after logging them (if {@link #logViolationsToConsole} is {@code true}).
* Compare this to {@link #failsOnError} which fails the build immediately
* before examining the output log.
*/
@@ -650,7 +650,7 @@ public class CheckstyleViolationCheckMoj
String rule = RuleUtil.getName( source );
String category = RuleUtil.getCategory( source );
- log( severity, file + '[' + line + ( ( column == null ) ? "" : ( ':' + column ) ) + "] ("
+ log( severity, file + ":[" + line + ( ( column == null ) ? "" : ( ',' + column ) ) + "] ("
+ category + ") " + rule + ": " + message );
}
}