VB022
Deeply nested blocks
Visual Basic 6
Warning
VB6
Nesting past four levels hides which condition guards which statement; inverting guards flattens it
nesting past four levels hides which condition guards which statement; inverting guards flattens it.
Why this severity
nesting past four levels hides which condition guards which statement; inverting guards flattens it.
Known false positives
none expected; single-line Ifs do not open blocks.
Remediation example
If Not isValid Then Exit Sub ' ... continue at one level