Skip to content

Files

Latest commit

 

History

History
25 lines (17 loc) · 726 Bytes

Generic.Metrics.NestingLevel.md

File metadata and controls

25 lines (17 loc) · 726 Bytes

Pattern: Nesting depth is too high

Issue: -

Description

This rule checks how many level deep that code is nested within a function.

Configuration

  • nestingLevel: the nesting level above which this rule will generate warnings
  • absoluteNestingLevel: 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>

Further Reading