Skip to content

Files

Latest commit

 

History

History
30 lines (17 loc) · 507 Bytes

NestedIfDepth.md

File metadata and controls

30 lines (17 loc) · 507 Bytes

Pattern: Too many nested if-else blocks

Issue: -

Description

Restricts nested if-else blocks to a specified depth (default = 1).

Examples

To configure the check:

<module name="NestedIfDepth"/>

To configure the check to allow nesting depth 3:

<module name="NestedIfDepth">
    <property name="max" value="3"/>
</module>

Further Reading