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: universal
formattingreadabilitywhitespacestyle
Separate distinct blocks of logic with blank lines
Add vertical whitespace between logically distinct sections so dense code is easier to scan.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codejavascript
| 1 | const a = setup(); |
| 2 | validate(a); |
| 3 | const b = transform(a); |
| 4 | persist(b); |
| 5 | return b; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codejavascript
| 1 | const a = setup(); |
| 2 | validate(a); |
| 3 |
|
| 4 | const b = transform(a); |
| 5 | persist(b); |
| 6 |
|
| 7 | return b; |
Explanation (EN)
Objašnjenje (HR)