Skip to content
Latchkey

Cyclomatic Complexity - CI/CD Glossary Definition

Cyclomatic complexity is a metric, defined by Thomas McCabe, that counts the number of linearly independent paths through a piece of code, so more branches and loops raise the number.

Why it matters

Higher complexity means more paths to test and more places for bugs. CI quality gates often fail a build when a function exceeds a complexity threshold, nudging it to be split up.

Related guides

Tired of flaky CI? Latchkey auto-heals failed jobs and retries them for you. Start free →