-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.swiftformat
More file actions
48 lines (41 loc) · 872 Bytes
/
Copy path.swiftformat
File metadata and controls
48 lines (41 loc) · 872 Bytes
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
# SwiftFormat Configuration
--swiftversion 6.0
# Indentation
--indent 4
--tabwidth 4
--indentcase false
--ifdef no-indent
# Wrapping
--maxwidth 120
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--closingparen balanced
# Spacing
--trimwhitespace always
--nospaceoperators ..<,...
--ranges spaced
# Options
--stripunusedargs closure-only
--self insert
--importgrouping alphabetized
--commas inline
--decimalgrouping 3,4
--exponentcase lowercase
--fractiongrouping disabled
--hexgrouping 4,8
--octalgrouping 4,8
--patternlet inline
--ifdef no-indent
--elseposition same-line
--guardelse auto
--header strip
# Enabled rules
--enable isEmpty
--enable sortedImports
--enable duplicateImports
--enable blankLinesAroundMark
--enable blankLinesAtStartOfScope
--enable blankLinesAtEndOfScope
# Disabled rules
--disable andOperator