-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.swiftformat
More file actions
63 lines (53 loc) · 1.07 KB
/
.swiftformat
File metadata and controls
63 lines (53 loc) · 1.07 KB
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
# SwiftFormat Configuration
# mkdn: Mac-native Markdown viewer/editor
# Swift version
--swiftversion 6.0
# Indentation
--indent 4
--tabwidth 4
--smarttabs enabled
--indentcase false
--ifdef indent
# Wrapping
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--wrapconditions after-first
--wrapreturntype preserve
--wraptypealiases before-first
--maxwidth 120
--closingparen balanced
# Spacing
--operatorfunc spaced
--ranges spaced
--trimwhitespace always
--stripunusedargs closure-only
# Braces
--allman false
--elseposition same-line
--guardelse next-line
# Semicolons
--semicolons never
# Redundancy
--self remove
--selfrequired
--redundanttype inferred
# Imports
--importgrouping testable-last
# Other
--commas always
--decimalgrouping 3
--exponentcase lowercase
--exponentgrouping disabled
--fractiongrouping disabled
--header strip
--hexgrouping 4
--hexliteralcase uppercase
--lifecycle
--linebreaks lf
--octalgrouping 4
--patternlet hoist
--voidtype void
--emptybraces no-space
# Exclusions
--exclude .build,DerivedData,mkdn/Resources