Skill: Style Guide
Read the official style guide documentation at docs/StyleGuide.md for complete formatting rules, naming conventions, and SwiftLint configuration.
Quick Reference
| Rule | Convention |
|---|---|
| Protocols | Contract suffix |
| Mocks | Mock suffix (never prefix) |
| Mock variables | Also use Mock suffix |
| Parameters | identifier not id |
| Force unwrap | Never use ! |
| Access modifiers | Never explicit internal |
| Line length | Max 140 characters |
Checklist
- • Line length ≤ 140 characters
- • Imports alphabetized
- • Protocols end with
Contract - • Mocks end with
Mock(suffix only, never prefix) - • Mock variables also use
Mocksuffix - • No force unwrap (
!) - • No unused variables/parameters
- • Code organized: properties → init → public methods → private extension