You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Andreas Dangel (JIRA)" <ji...@apache.org> on 2018/03/19 21:05:00 UTC

[jira] [Updated] (MPMD-256) Add maxAllowedViolations property for PMD

     [ https://issues.apache.org/jira/browse/MPMD-256?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Dangel updated MPMD-256:
--------------------------------
    Issue Type: New Feature  (was: Bug)

> Add maxAllowedViolations property for PMD
> -----------------------------------------
>
>                 Key: MPMD-256
>                 URL: https://issues.apache.org/jira/browse/MPMD-256
>             Project: Maven PMD Plugin
>          Issue Type: New Feature
>          Components: PMD
>            Reporter: Andreas Dangel
>            Priority: Major
>             Fix For: 3.10.0
>
>
> Add the ability to set the maximum number of allowed violations before a build fails.
> The idea being that you could set a threshold of errors before the build would actually fail, instead of the default of 1. This would be useful for legacy code that had not always been using PMD and needs to be cleaned up over time. If the value is set then the code can't get worse and people can use it to help clean up their projects.
> This is similar to the checkstyle property [http://maven.apache.org/plugins/maven-checkstyle-plugin/check-mojo.html#maxAllowedViolations]
>  
> PR: [https://github.com/apache/maven-pmd-plugin/pull/1]
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)