/swiftlint-config

Good starter config for SwiftLint

Creative Commons Zero v1.0 UniversalCC0-1.0

swiftlint-config

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.

Usage

  1. 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)

  1. Follow the SwiftLint setup instructions.

Badge

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)

sindresorhus's SwiftLint config