Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sindresorhus/swiftlint-config
Good starter config for SwiftLint
https://github.com/sindresorhus/swiftlint-config
linter-config sindresorhus swift swiftlint swiftlint-config
Last synced: about 1 month ago
JSON representation
Good starter config for SwiftLint
- Host: GitHub
- URL: https://github.com/sindresorhus/swiftlint-config
- Owner: sindresorhus
- License: cc0-1.0
- Created: 2019-04-27T15:01:49.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-05-13T07:52:19.000Z (6 months ago)
- Last Synced: 2024-05-22T18:06:01.817Z (6 months ago)
- Topics: linter-config, sindresorhus, swift, swiftlint, swiftlint-config
- Homepage:
- Size: 20.5 KB
- Stars: 40
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# swiftlint-config
> Good starter config for [SwiftLint](https://github.com/realm/SwiftLint)
SwiftLint has a lot of [rules](https://github.com/realm/SwiftLint) 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](https://github.com/search?q=user%3Asindresorhus+language%3Aswift).
## 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)*
2. Follow the [SwiftLint setup instructions](https://github.com/realm/SwiftLint#installation).
## 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](https://img.shields.io/badge/SwiftLint-sindresorhus-hotpink.svg)](https://github.com/sindresorhus/swiftlint-config)