Rules Hub
Coding Rules Library
← Back to all rules
Rule priority, scope & exceptions
Use this to align rules with the senior-level structure (P0/P1/P2, scope, exceptions/tradeoffs).
fullstack ruleP2universalStack: general
formattingreadabilitywhitespace
Set off a consequential statement with a blank line
A line that overrides or mutates what was just built (e.g. `merge(res.locals, overrides)` right after a big literal) deserves whitespace before it so the reader notices it is a separate, significant step.
PR: hegnar-web#4698 FCK-3550 Drive ad suppression from the article flagCreated: Sep 7, 2026
Bad example
Old codets
| 1 | } satisfies Locals, |
| 2 | }; |
| 3 | merge(res.locals, localOverrides); |
Explanation (EN)
Objašnjenje (HR)
Good example
New codets
| 1 | } satisfies Locals, |
| 2 | }; |
| 3 |
|
| 4 | merge(res.locals, localOverrides); |
Explanation (EN)
Objašnjenje (HR)