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...@codehaus.org> on 2013/05/04 16:51:52 UTC

[jira] (MPMD-168) Skip report generation if results are empty

    [ https://jira.codehaus.org/browse/MPMD-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=324682#comment-324682 ] 

Andreas Dangel commented on MPMD-168:
-------------------------------------

Pull request: https://github.com/apache/maven-plugins/pull/11

Please note, that the new parameter is called "skipEmptyReport" and it is by default *not true* to be backwards compatible.
However, thinking over, I guess it's not a big deal to change the behaviour here and it seems to be a better default conventional
configuration.

                
> Skip report generation if results are empty
> -------------------------------------------
>
>                 Key: MPMD-168
>                 URL: https://jira.codehaus.org/browse/MPMD-168
>             Project: Maven 2.x PMD Plugin
>          Issue Type: Bug
>            Reporter: Michael Osipov
>
> Most report plugin simply skip report generation if there is nothing to display. This plugin should do the same. A parameter like {{skipIfEmpty}} should be added with default value {{true}}. The evaluation should happen in the {{canGenerate}} method.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira