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
namingreadability
Name array and collection variables in the plural
Give variables that hold arrays or collections a plural, descriptive name so the type is obvious from the identifier.
PR: vinify-backend · org-mining-2026-06Created: Jun 17, 2026
Bad example
Old codetypescript
| 1 | const record = rows.map(r => r.value); // record is an array |
Explanation (EN)
Objašnjenje (HR)
Good example
New codetypescript
| 1 | const records = rows.map(r => r.value); |
Explanation (EN)
Objašnjenje (HR)