-
Notifications
You must be signed in to change notification settings - Fork 1
/
.swiftformat
27 lines (21 loc) · 825 Bytes
/
.swiftformat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Swift version
--swiftversion 5
# Opt-in rules (See https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#opt-in-rules-disabled-by-default)
--enable acronyms
--enable blankLineAfterImports
--enable blankLinesBetweenImports
--enable isEmpty
--enable sortSwitchCases
--enable wrapEnumCases
--enable wrapSwitchCases
# Disabled
--disable wrapMultilineStatementBraces
# Excluded directories
--exclude Pods
# Rules Options
## Unused Arguments (See https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#unusedarguments)
--stripunusedargs closure-only
## Wrapping Arguments (See https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#wraparguments)
--wraparguments before-first
## Code indentation (See https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md#indent)
--ifdef no-indent