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

Add support for multiple RuleSets

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.0-beta-1
    • None
    • None

    Description

      This adds the ability for the user to configure multiple rulesets with PMD as follows:

      <reporting>
      <plugins>
      <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-pmd-plugin</artifactId>
      <configuration>
      <rulesets>
      <ruleset>controversial</ruleset>
      <ruleset>design</ruleset>
      </rulesets>
      </configuration>
      </plugin>
      </plugins>
      </reporting>

      It is assumed that the ruleset can be found in classpath:/rulesets/<name>.xml. This is the convention PMD uses and the user can add their own rulesets in a JAR and run them with the same configuration as long as they have a unique name.

      Attachments

        1. pmd.multi.rulesets.txt
          8 kB
          Mike Perham

        Activity

          People

            Unassigned Unassigned
            mperham Mike Perham
            Votes:
            2 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: