LL012
Deep nesting
Object Pascal — Delphi & Free Pascal
Warning
Complexity
Deeply nested branches increase cognitive load and defect rates
deeply nested branches increase cognitive load and defect rates.
Why this severity
deeply nested branches increase cognitive load and defect rates.
Known false positives
parser-generated or mechanically transformed code.
Remediation example
if not IsValid then Exit; if not IsAuthorized then Exit; ProcessRequest;
Related Complexity rules