You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Tran Hoang Chuong (JIRA)" <ji...@apache.org> on 2016/11/02 13:38:58 UTC
[jira] [Created] (MCHECKSTYLE-329) Checkstyle plugin does not show
the number of errors if the severity is configured to be 'warning'.
Tran Hoang Chuong created MCHECKSTYLE-329:
---------------------------------------------
Summary: Checkstyle plugin does not show the number of errors if the severity is configured to be 'warning'.
Key: MCHECKSTYLE-329
URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-329
Project: Maven Checkstyle Plugin
Issue Type: Bug
Affects Versions: 2.17
Reporter: Tran Hoang Chuong
Priority: Minor
I have configured the maven checkstyle module as follow:
{noformat}
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>2.17</version>
<configuration>
<includeTestSourceDirectory>false</includeTestSourceDirectory>
<violationSeverity>warning</violationSeverity>
<checkstyleRules>
<module name="Checker">
<property name="severity" value="warning"/>
<module name="TreeWalker">
<property name="fileExtensions" value="java"/>
<module name="JavadocMethod">
<property name="scope" value="protected"/>
<property name="validateThrows" value="true"/>
<property name="allowedAnnotations"
value="Override, Test, Before, BeforeClass, After, AfterClass"/>
<property name="allowThrowsTagsForSubclasses" value="true"/>
</module>
<module name="MissingOverride"/>
<module name="MissingDeprecated"/>
<module name="AvoidStarImport"/>
<module name="UnusedImports">
<property name="processJavadoc" value="true"/>
</module>
<module name="ModifierOrder"/>
<module name="RedundantModifier">
<property name="tokens" value="INTERFACE_DEF"/>
</module>
<module name="OneTopLevelClass"/>
</module>
<module name="Header">
<property name="header" value="/*"/>
<property name="fileExtensions" value="java"/>
</module>
<module name="RegexpSingleline">
<property name="severity" value="info"/>
<property name="message" value="Line has trailing spaces."/>
<property name="format" value="\s+$"/>
<property name="fileExtensions" value="java"/>
</module>
</module>
</checkstyleRules>
</configuration>
</plugin>
{noformat}
Executing mvn checkstyle:check does not give me the number of violations.
However, it does give me the number if I comment out these lines:{{<violationSeverity>warning</violationSeverity>}}
{{<property name="severity" value="warning"/>}}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)