Avoid Excessive Standard Cyclomatic Complexity

Impact Area

Manageability

 

Severity

Medium

 

Affected Element

Apex Trigger

Apex  Class

 

Rule ID #

SF-0044

Impact #

Excessive cyclomatic complexity makes the code hard to understand, debug, and maintain. Standard cyclomatic complexity excludes boolean operators from the calculation.

Remediation #

Refactor the code to reduce the complexity of your methods.

Time to fix #

60 min

Was it helpful ?

THE AI CODE GOVERNANCE BRIEF

Sign up for new updates!