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/.

Environment/Instance Properties

Property Name

Property Code

Required

Description

PMD PathFDSF_PMD_PATHNoPath for the PMD install. (Eg: /u01/pmd-bin-6.30.0/bin)

Project Properties

Property Name

Property Code

Required

Description

PMD Rule File NameFDSF_PMD_RULE_FILE

No

PMD Rule File with path. Default rules would be used, if not provided.  

Inputs

Input Name

Input Code

Required

Description

PMD Rule File NameFDSF_INP_PMD_RULE_FILENoPMD Rule File with path.
Project Source FolderFDSF_INP_PROJECT_LOCATIONNoPath to the project which contains a Apex classes. Project artifact would be use, if not provided.

  

Outputs

Output Name

Required

Description

FDSF_OUT_TOTAL_ISSUE_COUNT

No

Total issues count

FDSF_OUT_PRIORITY1_TOTAL_ISSUE_COUNTNoTotal issues count for priority 1
FDSF_OUT_PRIORITY2_TOTAL_ISSUE_COUNTNoTotal issues count for priority 2
FDSF_OUT_PRIORITY3_TOTAL_ISSUE_COUNTNoTotal issues count for priority 3
FDSF_OUT_PRIORITY4_TOTAL_ISSUE_COUNTNoTotal 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 Environment/Instance.

Endpoint Execution

This operation will execute on any one of the selected endpoints and will be random in the determination of which one.