CodeQL library for Java/Kotlin
codeql/java-all 0.8.12 (changelog, source)
Search

Member predicate MetricCallable::getCyclomaticComplexity

The cyclomatic complexity of a callable is defined as the number of branching statements (if, while, do, for, switch, case, catch) plus the number of branching expressions (?, && and ||) plus one.

int getCyclomaticComplexity()