> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trunk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# swiftformat

> swiftformat is a linter for Swift

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

You can enable the swiftformat linter with:

```shell theme={null}
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](../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)
