Avoid Excessive Cyclomatic Complexity

< 1 min read

Impact Area

Manageability

 

Severity

Medium

 

Affected Element

Apex Class

Apex Trigger

Rule ID #

SF-0013

Impact #

Excessive cyclomatic complexity makes the code hard to understand, debug, and maintain. It is determined by the number of decision points in a method plus one for the method entry.

Remediation #

Refactor the code to reduce its complexity.

Time to fix #

60 min

Updated on March 21, 2025
Was it helpful ?