Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Execute PMD Static code analyzer on source code. It will help you find common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and many more.  This operation can be executed after the build or before deployment on the artifact. You can provide a rule file to control what to check or use the default rule file.    

Info

PMD

This operation requires PMD tool on the endpoint. You can download it from https://sourceforge.net/projects/pmd/files/pmd/.

...

Property Name

Property Code

Required

Description

PMD Path

FDPMD_PATH

NONo

Absolute path to PMD bin folder containing run.sh and pmd.bat

(Eg: /u01/pmd/pmd-bin-6.46.0/bin)

...

Property Name

Property Code

Required

Description

PMD Rule File Name

FDPMD_RULE_FILE

No

PMD Rule File. Specify multiple PMD Rule Files separated by comma

Language Type

FDPMD_LANG_TYPE

NONo

Select this to define what language to PMD will use to test.(This Property is manadatory if No custom Ruleset provided. )

...