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
formattingeditor-configwhitespace
Trim trailing whitespace but keep the final newline
Configure your editor to trim trailing whitespace while preserving the single trailing newline at end of file.
PR: hegnar-web · org-mining-hist-2026-06Created: Jun 19, 2026
Bad example
Old codeini
| 1 | // .editorconfig |
| 2 | trim_trailing_whitespace = true |
| 3 | insert_final_newline = false |
Explanation (EN)
Objašnjenje (HR)
Good example
New codeini
| 1 | // .editorconfig |
| 2 | trim_trailing_whitespace = true |
| 3 | insert_final_newline = true |
Explanation (EN)
Objašnjenje (HR)