Maximum depth of nesting of control flow structures
This metric specifies the maximum nesting depth of control flow
statements such as if, switch, for,
or while in a function. A function without control-flow
statements has a call level 1.
The recommended upper limit for this metric is 4. For better readability of your code, try to enforce an upper limit for this metric.
To enforce limits on metrics, see Compute Code Complexity Metrics.
| Group: Function |
Acronym: LEVEL |
| HIS Metric: Yes |