Document dep on swiftformat and using it for swift formatting

This commit is contained in:
Caleb Jasik 2025-02-13 16:24:48 -06:00
parent c46166b45a
commit 9de1849e93
No known key found for this signature in database

View file

@ -7,6 +7,7 @@
Install all of the following things:
- [`xcode`](https://apps.apple.com/us/app/xcode/)
- [`swiftformat`](https://github.com/nicklockwood/SwiftFormat)
- [`android-studio`](https://developer.android.com/studio)
- [`flutter` 3.29.0](https://docs.flutter.dev/get-started/install)
- [`gomobile`](https://pkg.go.dev/golang.org/x/mobile/cmd/gomobile)
@ -41,6 +42,10 @@ dart format lib/ test/ -l 120
In Android Studio, set the line length using Preferences -> Editor -> Code Style -> Dart -> Line length, set it to 120. Enable auto-format with Preferences -> Languages & Frameworks -> Flutter -> Format code on save.
`swiftformat .` can be used to format the `*.swift` code in the repo.
There are several options for editor integrations listed in the source repo: <https://github.com/nicklockwood/SwiftFormat>
# Release