Complexity is a transparent static heuristic
Each scope starts at one path, then adds branches for conditionals, loops, catches, tested switch cases, ternaries, and short-circuit logical operators.
Nested functions are measured independently and excluded from their parent's count. The metric is a review aid, not a quality verdict.