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: any
processtech-debtscopecomments
Tag deferred fixes with a TODO and a tracking ticket, don't fix tech debt mid-PR
Avoid expanding a task's scope for tech-debt cleanup; mark the spot with a TODO referencing a ticket so it's tracked and the current PR stays focused.
PR: hegnar-ws · org-mining-hist-2026-06Created: Jun 18, 2026
Bad example
Old codetypescript
| 1 | // silently relies on a known-wrong base type, no marker |
| 2 | .asArray()) as Agenda[]; |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | // TODO: TICKET-1435 Agenda repository returns the wrong base type |
| 2 | .asArray()) as Agenda[]; |
Explanation (EN)
Objašnjenje (HR)