-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftformat
47 lines (45 loc) · 1.15 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
# exclusion
--exclude Package.swift, \
Sources/Documentation.docc/, \
.swiftpm, \
.deriveddata
# format options
--allman false # use K&R indentation style
--binarygrouping 4,8
--closingparen balanced
--commas always
--comments indent
--computedvarattrs same-line
--decimalgrouping 3,6
--elseposition same-line
--empty void
--exponentcase lowercase
--exponentgrouping disabled
--extensionacl on-declarations
--fractiongrouping disabled
--funcattributes prev-line
--hexgrouping 4,8
--hexliteralcase uppercase
--ifdef no-indent
--indent 4
--indentcase false
--importgrouping testable-bottom
--lineaftermarks false # Do not insert a blank line after "MARK: comments"
--linebreaks lf
--maxwidth 130
--octalgrouping 4,8
--operatorfunc spaced
--patternlet hoist
--ranges spaced
--semicolons inline
--storedvarattrs same-line
--stripunusedargs always
--trimwhitespace always
--typeattributes prev-line
--wraparguments before-first
--wrapcollections before-first
--wrapconditions after-first
--wrapparameters before-first
# rules
--disable elseOnSameLine,redundantSelf,redundantStaticSelf,redundantType,redundantRawValues,redundantReturn,preferForLoop
--enable blankLinesBetweenImports