Industry Standard Thresholds for Cyclomatic Complexity

NIST recommends a maximum cyclomatic complexity of 10 per function, a threshold widely adopted. Scores 1-5 are simple, 6-10 manageable, 11-20 complex and needing refactoring, and above 20 indicate very high risk and untestable code.

Sources

Open the full topic