You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2021/01/24 14:20:01 UTC

[jira] [Commented] (MCHECKSTYLE-371) Add logViolationCountToConsole property

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

Hudson commented on MCHECKSTYLE-371:
------------------------------------

Build failed in Jenkins: Maven » Maven TLP » maven-checkstyle-plugin » 31 #2

See https://ci-builds.apache.org/job/Maven/job/maven-box/job/maven-checkstyle-plugin/job/31/2/

> Add logViolationCountToConsole property
> ---------------------------------------
>
>                 Key: MCHECKSTYLE-371
>                 URL: https://issues.apache.org/jira/browse/MCHECKSTYLE-371
>             Project: Maven Checkstyle Plugin
>          Issue Type: New Feature
>          Components: checkstyle:check
>    Affects Versions: 3.0.0
>            Reporter: Stig Rohde Døssing
>            Priority: Major
>             Fix For: 3.1.1
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> The plugin is missing a property to allow users to log the violation count to console.
> There are already a couple of places where the violation count may be logged, but it doesn't happen unconditionally. The DefaultCheckstyleExecutor may log the error count, but only if there are error-severity violations. The CheckstyleViolationCheckMojo.countViolations method may log the violation count, but only if there are ignored violations.
> It would be nice if a logViolationCountToConsole property were added. Printing the violation count is convenient in cases where e.g. you have fixed some violations in a project and now want to reduce maxAllowedViolations. Currently you have to either manually count the violations from the report, or set maxAllowedViolations to 0 to get the plugin to fail and print the violation count.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)