Skip to content
Latchkey

Cyclomatic Complexity - CI/CD Glossary Definition

Cyclomatic complexity counts independent paths through code; higher means harder to test and maintain.

Cyclomatic complexity counts the number of linearly independent paths through a function, based on its branches and loops. Higher values indicate code that is harder to test and maintain.

In CI

Linters and analysis tools can fail a build when a function exceeds a complexity threshold, nudging developers to break it into smaller, testable pieces.

Related guides

Run this faster and cheaper on Latchkey managed runners. Start free →