← back to index

S1541 — Methods and properties should not be too complex

Language: C#  |  Type: CODE_SMELL  |  Severity: Critical

Tags: brain-overload

Why is this an issue?

The cyclomatic complexity of methods and properties should not exceed a defined threshold. Complex code can perform poorly and will in any case be difficult to understand and therefore to maintain.