The cyclomatic complexity of a function should not exceed a defined threshold.

Complex code can perform poorly and will in any case be difficult to understand and therefore to maintain.