What mehen emits
What counts as an exit
Each language analyzer maps its language’s exit-flow constructs:returnand value-returning expressions.throw/raise/panic!statements.yield/yield return(generator functions).exit,os.exit, and the equivalent process-exit calls where unambiguous.- Labeled
breakthat exits the function (rare in practice).
How to read it
References
- Dijkstra, E. W. (1968). Go To Statement Considered Harmful. Communications of the ACM, 11(3).
- Sonar: Metrics definitions.
See also
- Cyclomatic complexity — exit points are not branches; they’re orthogonal.
- NARGS — argument count.
- NOM — number of methods.