forked from datlechin/TablePro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftformat
More file actions
70 lines (62 loc) · 1.42 KB
/
.swiftformat
File metadata and controls
70 lines (62 loc) · 1.42 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
64
65
66
67
68
69
70
# SwiftFormat configuration
# https://github.com/nicklockwood/SwiftFormat
# Swift version
--swiftversion 5.9
# File options
--exclude DerivedData,.build,Packages,Pods,Carthage,vendor
# Format options
--indent 4
--indentcase false
--tabwidth 4
--maxwidth 120
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--wrapconditions after-first
--wrapreturntype if-multiline
--wrapeffects if-multiline
--closingparen balanced
--funcattributes prev-line
--typeattributes prev-line
--varattributes prev-line
--storedvarattrs same-line
--computedvarattrs same-line
# Spacing
--trimwhitespace always
--linebreaks lf
--semicolons never
--commas always
--operatorfunc spaced
--nospaceoperators
--ranges spaced
--typedelimiter space-after
--guardelse same-line
# Braces
--allman false
--elseposition same-line
--ifdefindent no-indent
# Misc
--self remove
--selfrequired
--importgrouping alpha
--header strip
--stripunusedargs closure-only
--modifierorder
--emptybraces no-space
# Enabled rules (comment out to disable)
--enable blankLineAfterImports
--enable blankLinesBetweenImports
--enable blockComments
--enable docComments
--enable isEmpty
--enable markTypes
--enable organizeDeclarations
--enable sortDeclarations
--enable wrapConditionalBodies
--enable wrapEnumCases
--enable wrapMultilineStatementBraces
--enable wrapSwitchCases
# Disabled rules
--disable acronyms
--disable redundantSelf
--disable trailingCommas