# swiftformat

[**swiftformat**](https://github.com/nicklockwood/SwiftFormat#readme) is a linter for Swift.

You can enable the swiftformat linter with:

```shell
trunk check enable swiftformat
```

## Auto Enabling

swiftformat will be auto-enabled if a `.swiftformat` config file is present.

## Settings

swiftformat supports the following config files:

* `.swiftformat`

You can move these files to `.trunk/configs` and `trunk check` will still find them. See [Moving Linters](https://docs.trunk.io/code-quality/overview/configure-linters#moving-linters) for more info.

## Links

* [swiftformat site](https://github.com/nicklockwood/SwiftFormat#readme)
* swiftformat Trunk Code Quality [integration source](https://github.com/trunk-io/plugins/tree/main/linters/swiftformat)
* Trunk Code Quality's [open source plugins repo](https://github.com/trunk-io/plugins/tree/main)
