cathcart:checkprevious_pmd

Full name:

net.sf.cathcart:maven-cathcart-plugin:0.9.7:checkprevious_pmd

Description:

Checks that the violations metric generated by pmd has not significantly deteriorated since the last successful build.

Attributes:

  • Is NOT inherited by default in multi-project builds.

Required Parameters

Name Type Since Description
pmd.report File - The xml report produced by pmd which contains the raw data for checking.
basedir File - The base directory from which to execute the Ant script.
Default value is: ${basedir}.

Optional Parameters

Name Type Since Description
checkprevious.pmd.violations.leeway Double - The allowed leeway in the value of violations when compaired to the last successful build.
Default value is: 0.
checkprevious.pmd.violations.absolute Boolean - Is the leeway for violations given as an absolute value (true) or a percentage (false)?
Default value is: false.
checkprevious.pmd.dir String - The directory where results are saved between builds.
Default value is: previous.
checkprevious.pmd.backup Boolean - Make a backup of the previous result file when it is replaced.
Default value is: true.
messageLevel String - The message-level used to tune the verbosity of Ant logging.
Default value is: info.

Parameter Details

pmd.report:

The xml report produced by pmd which contains the raw data for checking.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${pmd.report}

checkprevious.pmd.violations.leeway:

The allowed leeway in the value of violations when compaired to the last successful build.
  • Type: java.lang.Double
  • Required: No
  • Expression: ${checkprevious.pmd.violations.leeway}
  • Default: 0

checkprevious.pmd.violations.absolute:

Is the leeway for violations given as an absolute value (true) or a percentage (false)?
  • Type: java.lang.Boolean
  • Required: No
  • Expression: ${checkprevious.pmd.violations.absolute}
  • Default: false

checkprevious.pmd.dir:

The directory where results are saved between builds.
  • Type: java.lang.String
  • Required: No
  • Expression: ${checkprevious.pmd.dir}
  • Default: previous

checkprevious.pmd.backup:

Make a backup of the previous result file when it is replaced.
  • Type: java.lang.Boolean
  • Required: No
  • Expression: ${checkprevious.pmd.backup}
  • Default: true

basedir:

The base directory from which to execute the Ant script.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${antBasedir}
  • Default: ${basedir}

messageLevel:

The message-level used to tune the verbosity of Ant logging.
  • Type: java.lang.String
  • Required: No
  • Expression: ${antMessageLevel}
  • Default: info