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
namingreadability
Avoid single-letter and abbreviated variable names
Use descriptive identifiers in callbacks and loops instead of single letters like v, b, i, or c, which are harder to read and review.
PR: vinify-frontend · org-mining-2026-06Created: Jun 17, 2026
Bad example
Old codets
| 1 | items.map(x => x.id); |
| 2 | configs.forEach(c => process(c)); |
Explanation (EN)
Objašnjenje (HR)
Good example
New codets
| 1 | items.map(item => item.id); |
| 2 | configs.forEach(config => process(config)); |
Explanation (EN)
Objašnjenje (HR)