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: Tooling
scope-controllintingrefactoringpr-hygiene
Leave pre-existing lint violations alone when introducing a linter
When adding or tightening lint rules, suppress existing violations and fix them incrementally; mass-fixing unrelated code only inflates the diff and risks regressions.
PR: hegnar-forum-web · org-mining-3rd-2026-06Created: Jun 18, 2026
Bad example
Old codetext
| 1 | // PR that adds oxlint also rewrites dozens of unrelated files to fix old warnings |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetext
| 1 | // PR adds oxlint; existing violations stay suppressed and are fixed incrementally as files are touched |
Explanation (EN)
Objašnjenje (HR)