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

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)

Project Properties

Property Name

Property Code

Required

Description

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

Inputs

Input Name

Input Code

Required

Description

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. The project artifact is unzipped and used, if this value is not provided.

Outputs

Output Name

Required

Description

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

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.

The following macros are not currently supported in the footer:
  • style