| name | style-guide |
| description | Code style and formatting rules. Use when writing code, naming types, or fixing SwiftLint issues. |
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, always any when used as type |
| Mocks | Mock suffix (never prefix) |
| Mock variables | Also use Mock suffix |
| Parameters | identifier not id |
| Force unwrap | Never use ! |
| Access modifiers | Never explicit internal |
| Pattern matching | case let .foo(a, b): not case .foo(let a, let b): |
| Line length | Max 140 characters |
Checklist