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).
backend ruleP2universalStack: universal
dead-codecleanupyagni
Delete unused code instead of leaving it in
Remove functions, providers, fields, and env vars that nothing references; don't leave leftover or speculative code behind.
PR: hegnar-mws · org-mining-2026-06Created: Jun 17, 2026
Bad example
Old codetypescript
| 1 | async fetchQuotesForPrice(insrefs) { /* never called anywhere */ } |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | // removed — reintroduce from history if a real caller appears |
Explanation (EN)
Objašnjenje (HR)