Rule Code Quality

Early Returns

Use early returns to reduce nesting depth

readabilitycontrol-flowclarity
CLAUDE.md

Use early returns to reduce nesting depth. Handle error cases and edge conditions at the top of the function, then proceed with the main logic unnested.

Copy this block into your CLAUDE.md or agent config file to enforce it in your workflow.

get crystl