CodeQL library for Java
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()