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: universal
processcleanupscope
Do related cleanup in the same PR that touches the code
When you've already modified a method or area, fold the small follow-up/cleanup into the same change instead of deferring it to a separate task.
PR: hegnar-forum-web · org-mining-hist-2026-06Created: Jun 20, 2026
Bad example
Old codets
| 1 | // 'I'll make a separate task for renaming this misleading method later' |
Explanation (EN)
Objašnjenje (HR)
Good example
New codets
| 1 | // rename / clean up now, since this PR already edits the method |
Explanation (EN)
Objašnjenje (HR)