-
Notifications
You must be signed in to change notification settings - Fork 10
/
.swiftformat
57 lines (53 loc) · 1.27 KB
/
.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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
--swiftversion 5.5
# format options
--indent 2
--extensionacl on-extension
--modifierorder
--self insert
--semicolons inline
--trailingclosures
--commas inline
--stripunusedargs closure-only
--maxwidth 120
--wrapparameters before-first
--wrapcollections before-first
--wrapconditions after-first
--funcattributes prev-line
--typeattributes prev-line
--varattributes prev-line
--ranges no-space
--xcodeindentation enabled
--patternlet hoist
--marktypes if-not-empty
--typemark "MARK: - %t"
--markextensions always
--extensionmark "MARK: - %t + %c"
--groupedextension "MARK: - %c"
--elseposition "same-line"
--emptybraces "no-space"
--extensionacl on-declarations
--trailingclosures
# file options
--exclude Scripts, Pods, Carthage, Resource, **/Generated
# rules
--enable duplicateImports
--enable enumNamespaces
--enable isEmpty
--enable markTypes
--enable redundantBreak
--enable redundantInit
--enable redundantLet
--enable redundantLetError
--enable redundantNilInit
--enable leadingDelimiters
--enable spaceAroundBraces
--enable spaceAroundBrackets
--enable spaceAroundComments
--enable spaceInsideBraces
--enable spaceInsideBrackets
--disable andOperator
--disable blankLinesAtStartOfScope
--disable redundantBackticks
--disable sortedSwitchCases
--disable redundantReturn
--disable void