Good starter config for SwiftLint
SwiftLint has a lot of rules and it takes time to adjust them to something sensible. You probably don't want exactly what I have, but this should be a good starting point. This is what I use for all my Swift projects.
- Create a
.swiftlint.yml
file in the root of your project with the following:
parent_config: https://raw.githubusercontent.com/sindresorhus/swiftlint-config/main/.swiftlint.yml
(Replace main
with a specific commit hash if you want predictable builds)
- Follow the SwiftLint setup instructions.
Show off that you're using this config.
[![sindresorhus's SwiftLint config](https://img.shields.io/badge/SwiftLint-sindresorhus-hotpink.svg)](https://github.com/sindresorhus/swiftlint-config)