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 ruleP1universalStack: universal
testingcoveragequality
Treat uncertainty about behavior as a sign of missing tests
If you can't be sure how code behaves in a case, that case needs test coverage.
PR: frontpage-web · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codetypescript
| 1 | // edge case: not sure what happens when all events finished? |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | it('hides the channel when all events have finished', () => { ... }); |
Explanation (EN)
Objašnjenje (HR)