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




Last modified on Jun 10, 2020