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

Configuration

{
    "type": "NestedIfDepth",
    "props": {
        "severity": "ERROR",
        "max": 1
    }
}