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
Static Analysis - CI/CD Glossary DefinitionStatic Analysis: Static analysis examines source code without running it, detecting bugs, security issues, an…
Continuous Testing - CI/CD Glossary DefinitionContinuous Testing: Continuous testing is running automated tests throughout the delivery pipeline, from comm…
Shift Left - CI/CD Glossary DefinitionShift Left: Shift left is moving testing, security, and quality checks earlier in the delivery process, so de…