Pattern: Nesting depth is too high
Issue: -
This rule checks how many level deep that code is nested within a function.
nestingLevel
: the nesting level above which this rule will generate warningsabsoluteNestingLevel
: the nesting level above which this rule will generate errors
<rule ref="Generic.Metrics.NestingLevel">
<properties>
<property name="nestingLevel" value="8" />
<property name="absoluteNestingLevel" value="12" />
</properties>
</rule>