Deep nesting reducing readability
Deeply nested control flow should be flattened where practical.
#Metadata
#Why it matters
Deep nesting increases cognitive load and makes edge cases harder to reason about during review.
#Remediation
Use guard clauses, helper functions, or early returns to keep the main path shallow.
#Repository path
The generated metadata points to critiq-rules/libs/rules/catalog/rules/typescript/ts.quality.deep-nesting.rule.yaml.