-
Notifications
You must be signed in to change notification settings - Fork 16
/
.swiftformat.yml
63 lines (57 loc) · 1.25 KB
/
.swiftformat.yml
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
58
59
60
61
62
63
# format options
--allman false
--asynccapturing
--binarygrouping 4,8
--closingparen balanced
--closurevoid remove
--commas inline
--comments indent
--decimalgrouping 3,3
--elseposition same-line
--exponentcase lowercase
--exponentgrouping disabled
--extensionacl on-declarations
--fractiongrouping disabled
--funcattributes prev-line
--generictypes
--guardelse same-line
--hexgrouping 4,8
--hexliteralcase uppercase
--ifdef no-indent
--indent 2
--indentcase false
--importgrouping alpha
--linebreaks lf
--maxwidth 200
--octalgrouping 4,8
--operatorfunc spaced
--patternlet hoist
--ranges no-space
--redundanttype infer-locals-only
--self init-only
--semicolons inline
--someAny true
--stripunusedargs always
--throwcapturing
--trimwhitespace always
--typeattributes prev-line
--varattributes same-line
--voidtype void
--wraparguments before-first
--wrapeffects never
--wrapcollections before-first
--wrapconditions after-first
--wrapparameters before-first
# op-ins (enable)
--enable blockComments
--enable genericExtensions
--enable spaceInsideGenerics
--enable opaqueGenericParameters
--enable isEmpty
--enable markTypes
--enable wrapEnumCases
# op-ins (disable)
--disable wrapMultilineStatementBraces
# exclude
--exclude "**/Package/*"
--exclude "**/Package.swift"