Cyclomatic complexity

This metric has no screenshot. Open it in the interactive 3D view of a project below.

What it measures

Sum of the cyclomatic complexity (McCabe) of all functions of a file: the number of independent paths through the code, counted by Lizard for about 25 languages.

How to read it

Height is the complexity. Tall buildings contain much branching logic.

Why it matters

Each path needs a test. Complex files are harder to test and to change safely. Combined with change frequency it shows the hotspots that matter most.

Open it in a project

Related metrics