CodeQL library for Java
codeql/java-all 0.5.5 ( 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 ( )