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/06/20 18:52:00 UTC

[jira] [Created] (MPMD-268) Missing warnings about deprecated rules

Andreas Dangel created MPMD-268:
-----------------------------------

             Summary: Missing warnings about deprecated rules
                 Key: MPMD-268
                 URL: https://issues.apache.org/jira/browse/MPMD-268
             Project: Maven PMD Plugin
          Issue Type: Bug
          Components: PMD
            Reporter: Andreas Dangel
            Assignee: Andreas Dangel
             Fix For: 3.11.0


If you use a custom ruleset, which contains deprecated rules, then a warnings is expected.

E.g. referencing this rule
{noformat}
<rule ref="rulesets/java/basic.xml/CollapsibleIfStatements"/>{noformat}
Should give the warning:
{noformat}
[WARNING] Use Rule name category/java/design.xml/CollapsibleIfStatements instead of the deprecated Rule name rulesets/java/basic.xml/CollapsibleIfStatements. PMD 7.0.0 will remove support for this deprecated Rule name usage.
{noformat}
 



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