Skip to content

lint

Run SwiftLint with the project's .swiftlint.yml.

Runs SwiftLint against the project, using the .swiftlint.yml generated by new.

Terminal window
swiftspawn lint [--fix]

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.

Terminal window
swiftspawn lint
swiftspawn lint --fix
FlagDescription
--fixRun swiftlint --fix to auto-correct fixable issues.
CodeMeaning
5Not in a swiftspawn project.
6SwiftLint not installed.

Non-zero exit also propagates from SwiftLint itself if violations are found.