lint
Run SwiftLint with the project's .swiftlint.yml.
Runs SwiftLint against the project, using the .swiftlint.yml generated by new.
Synopsis
Section titled “Synopsis”swiftspawn lint [--fix]Description
Section titled “Description”A thin wrapper around swiftlint. Run it from any directory inside the project; the CLI finds the project root and invokes SwiftLint with the project’s config file.
--fix runs swiftlint --fix to auto-correct what SwiftLint can fix.
SwiftLint must be installed separately (brew install swiftlint). If it isn’t, the command fails with a hint.
Examples
Section titled “Examples”swiftspawn lintswiftspawn lint --fixOptions
Section titled “Options”| Flag | Description |
|---|---|
--fix | Run swiftlint --fix to auto-correct fixable issues. |
Exit codes
Section titled “Exit codes”| Code | Meaning |
|---|---|
| 5 | Not in a swiftspawn project. |
| 6 | SwiftLint not installed. |
Non-zero exit also propagates from SwiftLint itself if violations are found.