---
title: Avoid Excessive Cyclomatic Complexity
description: "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…"
url: "https://community-staging.qualityclouds.com/qcdocs/qc/pmd-rules/avoid-excessive-cyclomatic-complexity/"
updated: "2025-03-21"
category: PMD Rules
---

# Avoid Excessive Cyclomatic Complexity

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
