analyzeApexCode
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.Ā
PMD
This operation requires PMD tool on the endpoint. You can download it fromĀ https://sourceforge.net/projects/pmd/files/pmd/.
Target Properties
Property Name | Property Code | Required | Description |
---|---|---|---|
PMD Path |
| No | Path for the PMD install. (Eg: /u01/pmd-bin-6.30.0/bin) |
Project Properties
Property Name | Property Code | Required | Description |
---|---|---|---|
PMD Rule File Name |
| No | PMD Rule File with path. Default rules would be used, if not provided.Ā Ā |
Inputs
Input Name | Input Code | Required | Description |
---|---|---|---|
PMD Rule File Name |
| No | PMD Rule File with path. |
Project Source Folder |
| No | Path to the project which contains a Apex classes. The project artifact is unzipped and used, if this value is not provided. |
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 consumes artifacts from the artifacts repository.
Endpoint Selection
This operation will select all available endpoints associated to the Target.
Endpoint Execution
This operation will execute on any one of the selected endpoints and will be random in the determination of which one.
- style