What problem does it solve?
SwiftLint helps teams automatically detect and prevent inconsistent Swift style and risky patterns early, reducing manual review overhead and keeping codebases uniform over time.
Core Features & Use Cases
- Rules & Configuration: Define lint behavior via
.swiftlint.yml, including disabled_rules, opt_in_rules, only_rules, severity tuning, and scoped included/excluded paths.
- Suppression & Baselines: Handle legacy violations safely using targeted
swiftlint:disable comments and baseline files for incremental rollout.
- Multiple Integrations: Choose between a SwiftPM build tool plugin, command plugin, Xcode run script phases, and CI reporter formats (including SARIF) for enforcement at scale.
Quick Start
Use SwiftLint with the build tool plugin (SimplyDanny/SwiftLintPlugins) and create a .swiftlint.yml configuration at the project root to start enforcing rules during builds and in CI.