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

Goal cpd-check uses ${pmd.failOnViolation} for failOnViolation Flag and can't be set independet from PMD check

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.4
    • 3.0
    • CPD
    • None

    Description

      The failOnViolation Flag can only be set for PMD and also is used by CPD.

      With the following change we can decide if we want to configure PMD and/or CPD:

      File: plugin.xml

      ...
      
      <mojo>
            <goal>cpd-check</goal>
      ...
            <configuration>
      ...
      NOW: 
      <failOnViolation implementation="boolean" default-value="true">${pmd.failOnViolation}</failOnViolation>
      
      Change to:
      <failOnViolation implementation="boolean" default-value="true">${cpd.failOnViolation}</failOnViolation>
      

      That's all.

      Attachments

        1. plugin.xml
          34 kB
          Thomas Enderlein

        Activity

          People

            olamy Olivier Lamy
            tenderlein Thomas Enderlein
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: