Uploaded image for project: 'Maven PMD Plugin'
  1. Maven PMD Plugin
  2. MPMD-268

Missing warnings about deprecated rules

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.11.0
    • PMD
    • None

    Description

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

      E.g. referencing this rule

      <rule ref="rulesets/java/basic.xml/CollapsibleIfStatements"/>

      Should give the warning:

      [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.
      

       

      Attachments

        Activity

          People

            adangel Andreas Dangel
            adangel Andreas Dangel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: