analyzeCode(PMD)
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.Ā Ā
PMD
This operation will install PMD(v6.54.0) tool on the endpoint. You can download other versions fromĀ https://sourceforge.net/projects/pmd/files/pmd/.
Target PropertiesĀ
Property Name | Property Code | Required | Description |
PMD Path |
| No | Absolute path to PMD bin folder containing run.sh and pmd.bat (Eg: /u01/pmd/pmd-bin-6.46.0/bin) (if this Value left empty plug in will install PMD v6.54.0 on end point) |
Project PropertiesĀ
Property Name | Property Code | Required | Description |
PMD Rule File Name |
| No | PMD Rule File. Specify multiple PMD Rule Files separated by comma |
Language Type |
| No | Select this to define what language PMD will use to test.(This Property is mandatory if No custom Ruleset provided. ) |
Inputs
Input Name | Input Code | Required | Description |
---|---|---|---|
PMD Rule File Name |
| No | Rule file with path |
Project Source Folder |
| No | Path to the project. If a relative path is given, a path inside of the FD_TEMP_DIR will be assumed. |
Additional arguments |
| No | Additional arguments( ex: --debug,--use-version <lang-version>) |
Outputs
Output Name | Required | Description |
---|---|---|
| No | Total issues count |
| No | Total issues count for priority 1 |
| No | Total issues count for priority 2 |
| No | Total issues count for priority 3 |
| No | Total issues count for priority 4 |
Artifacts
This operation doesn't produce any artifacts.Ā Ā
Endpoint Selection
This operation will select all available endpoints associated with the Target.
Endpoint Execution
This operation will execute on any one of the selected endpoints and will be random in the determination of which on
- style