Skip to content

Files

Latest commit

 

History

History
26 lines (17 loc) · 770 Bytes

Metrics-BlockNesting.md

File metadata and controls

26 lines (17 loc) · 770 Bytes

Pattern: Excessive block nesting

Issue: -

Description

This rule checks for excessive nesting of conditional and looping constructs.

You can configure if blocks are considered using the CountBlocks option. When set to false (the default) blocks are not counted towards the nesting level. Set to true to count blocks as well.

The maximum level of nesting allowed is configurable.

Default configuration

Attribute Value
CountBlocks false
Max 3

Further Reading