Skip to content

Files

Latest commit

 

History

History
11 lines (6 loc) · 433 Bytes

NestedBlockDepth.md

File metadata and controls

11 lines (6 loc) · 433 Bytes

Pattern: Too many nested blocks in function

Issue: -

Description

Excessively nested code becomes harder to read and increases its hidden complexity. It might become harder to understand edge-cases of the function. Prefer extracting the nested code into well-named functions to make it easier to understand.

Further Reading