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).
frontend ruleP2project specificStack: universal
scopemaintainabilityfeature-flags
Comment out code you'll soon need rather than deleting it
If a feature (e.g. a time filter) is temporarily out of MVP scope but planned, comment it out with a note instead of removing it so it isn't lost.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codets
| 1 | // time filter fully deleted because it's not in the MVP |
| 2 | const filters = [latest, hot]; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codets
| 1 | const filters = [ |
| 2 | latest, |
| 3 | hot, |
| 4 | // time filter is out of MVP scope but will return; keep it commented |
| 5 | // time, |
| 6 | ]; |
Explanation (EN)
Objašnjenje (HR)