Skip to content

Glossary: Refactoring and Clean Code

Cyclomatic complexity

Also written: McCabe complexity, complexity

A count of the separate paths through a function: one, plus one for each `if`, `elif`, `for`, `while` and `except`. The old `run` function scores 12.

Where the book teaches it

Related terms

C901Hotspot