-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.swiftformat
More file actions
21 lines (19 loc) · 791 Bytes
/
Copy path.swiftformat
File metadata and controls
21 lines (19 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--swiftversion 6.1
--indent 4
--indentcase true
--extension-acl on-declarations
--exclude Derived
# SwiftFormat can't enforce "wrap when there are >= N arguments", only
# "wrap when the unwrapped line exceeds --max-width". 100 columns is
# tight enough that almost every 2+ arg function/call wraps. A few
# long single-arg `logger.fault("…")` lines get chain-split as a
# nudge to extract the message.
--max-width 100
--wrap-arguments before-first
--wrap-parameters before-first
--wrap-collections before-first
# Default is `true`, which lets SwiftFormat keep some args on the same
# line when wrapping (e.g. `originLat: Double, originLng: Double,`).
# `false` makes wrapping all-or-nothing: either everything on one
# line, or one arg/parameter per line.
--allow-partial-wrapping false