Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)