Skip to content

Glossary: Refactoring and Clean Code

C901

Also written: mccabe.max-complexity

The ruff rule that reports functions whose cyclomatic complexity is above a limit. Its default limit is 10, and it can be lowered (for example to 5) to flag functions like Kettle & Crane's `run`.

Where the book teaches it

Related terms

Cyclomatic complexityruff