What problem does it solve?
SwiftLint and SwiftFormat provide complementary quality gates for Swift code, but teams often struggle to coordinate their rules, surfaces, and configurations across CLI tooling, Xcode phases, packaging, and automation. This skill clarifies a single, coherent workflow to install, configure, and apply both tools consistently in Apple-centric repositories.
Core Features & Use Cases
- Unified guidance for integrating SwiftLint and SwiftFormat across CLI, Xcode build phases, SwiftPM plugins, AppleScript automation, Git hooks, and GitHub Actions.
- Deterministic export pathway via scripts/export_swiftformat_xcode_config.py to produce a portable .swiftformat configuration from the SwiftFormat shared defaults when needed.
- Clear guidance on preferred paths (host-app export flow first) and safe fallbacks, plus verification steps to ensure the integration actually runs.
Quick Start
Use the host-app export flow to generate a portable SwiftFormat config at the project root, or fall back to the scriptable export in scripts/export_swiftformat_xcode_config.py when a deterministic export is required.