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).
mobile ruleP2stack specificStack: swift
swiftnamingapi-design
Name methods for clarity at the call site (Swift API Design Guidelines)
Choose names that read as a phrase at the call site and omit needless words already implied by types.
PR: mobile-canon-2026-06Created: Jul 5, 2026
Bad example
Old codeswift
| 1 | list.removeElement(at: i) |
Explanation (EN)
Objašnjenje (HR)
Good example
New codeswift
| 1 | list.remove(at: i) |
Explanation (EN)
Objašnjenje (HR)