-
Notifications
You must be signed in to change notification settings - Fork 445
/
.swiftformat
51 lines (49 loc) · 1.21 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
# rules
--enable isEmpty
--enable redundantFileprivate
--enable redundantReturn
--enable redundantBackticks
--enable redundantBreak
--enable redundantClosure
--enable redundantExtensionACL
--enable organizeDeclarations
--enable redundantFileprivate
--enable redundantGet
--enable redundantInit
--enable redundantInternal
--enable redundantLet
--enable redundantLetError
--enable redundantNilInit
--enable redundantObjc
--enable redundantOptionalBinding
--enable redundantParens
--enable redundantPattern
--enable redundantStaticSelf
--enable redundantVoidReturnType
--disable redundantRawValues
--disable sortImports
--disable andOperator
--disable wrapMultilineStatementBraces
--disable extensionAccessControl
# format options
--indentcase true
--trimwhitespace nonblank-lines
--maxwidth 130
--commas inline
--comments indent
--decimalgrouping 3,5
--exponentcase lowercase
--exponentgrouping disabled
--extensionacl on-declarations
--fractiongrouping disabled
--ifdef no-indent
--importgrouping testable-top
--operatorfunc no-space
--nospaceoperators ..<, ...
--selfrequired validate
--stripunusedargs closure-only
--wraparguments preserve
--wrapcollections preserve
--wrapparameters preserve
# organizeDeclarations
--markcategories false