swiftformat is a linter for Swift.

You can enable the swiftformat linter with:

trunk check enable swiftformat

Auto Enabling

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


swiftformat supports the following config files:

  • .swiftformat

You can move these files to .trunk/configs and trunk check will still find them. See Moving Linter Configs for more info.

Last updated