Execute PMD Static code analyzer for apex classes. 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 build or before deployment on the artifact. You can provide a rule file to control what to check or use the default rule file.
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 | FDSF_PMD_PATH | No | Path for the PMD install. (Eg: /u01/pmd-bin-6.30.0/bin) |
Property Name | Property Code | Required | Description |
---|---|---|---|
PMD Rule File Name | FDSF_PMD_RULE_FILE | No | PMD Rule File with path. Default rules would be used, if not provided. |
Input Name | Input Code | Required | Description |
---|---|---|---|
PMD Rule File Name | FDSF_INP_PMD_RULE_FILE | No | PMD Rule File with path. |
Project Source Folder | FDSF_INP_PROJECT_LOCATION | No | Path to the project which contains a Apex classes. Project artifact would be use, if not provided. |
Output Name | Required | Description |
---|---|---|
FDSF_OUT_TOTAL_ISSUE_COUNT | No | Total issues count |
FDSF_OUT_PRIORITY1_TOTAL_ISSUE_COUNT | No | Total issues count for priority 1 |
FDSF_OUT_PRIORITY2_TOTAL_ISSUE_COUNT | No | Total issues count for priority 2 |
FDSF_OUT_PRIORITY3_TOTAL_ISSUE_COUNT | No | Total issues count for priority 3 |
FDSF_OUT_PRIORITY4_TOTAL_ISSUE_COUNT | No | Total issues count for priority 4 |
This operation consumes artifacts from the artifacts repository.
This operation will select all available endpoints associated to the Environment/Instance.
This operation will execute on any one of the selected endpoints and will be random in the determination of which one.