- Configure in `.swiftlint.yml`. Run `swiftlint` on build and in CI.
- Use `swiftlint --fix` for auto-correctable violations (trailing whitespace, empty lines).
- Configure `.swiftlint.yml` with project-specific rules — use `disabled_rules`, `opt_in_rules`, and `custom_rules` for fine-grained control.
- Enable `strict` mode in CI: `swiftlint lint --strict` to treat warnings as errors.
- Disable rules that conflict with your team's style: `disabled_rules: [trailing_comma]`.
- Use `opt_in_rules` to enable stricter checks: `force_unwrapping`, `implicitly_unwrapped_optional`.
- Use per-file or in-line disable comments: `// swiftlint:disable:next force_cast`.