-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
.swiftformat
54 lines (42 loc) · 1.12 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
# fileHeader
--header strip
# indent
--indent 2
# numberFormatting
--decimalgrouping 3
--hexgrouping "ignore"
# redundantSelf
# Reference `self` explicitly
--self insert
# spaceAroundOperators
--nospaceoperators ...,..<
# wrap
--maxwidth 110
# trailingCommas
--commas inline
# unusedArguments
--stripunusedargs always
# wrapArguments
--wraparguments before-first
--wrapcollections before-first
# Disabled rules
--disable redundantInit
--disable void
# These are rules that were all added to swiftformat when we upgraded from 0.44 to 0.53.
# In the interest of minimizing changes, we disabled them - but these are perfectly good rules
# that we should revisit enabling.
--disable assertionFailures
--disable blankLineAfterImports
--disable enumNamespaces
--disable extensionAccessControl
--disable hoistTry
--disable modifierOrder
--disable preferForLoop
--disable redundantClosure
--disable redundantInternal
--disable redundantType
--disable wrapLoopBodies
--disable wrapMultilineStatementBraces
--disable wrapSingleLineComments
# Excluded files
--exclude bin,Carthage,Frameworks,Library/Strings.swift,vendor,KsApi/GraphAPI.swift