-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftformat
More file actions
72 lines (58 loc) · 1.49 KB
/
.swiftformat
File metadata and controls
72 lines (58 loc) · 1.49 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
71
72
# SwiftFormat configuration for Kuyruk
# Compatible with Swift 6 strict concurrency mode
# IMPORTANT: Don't remove self where it's required for Swift 6 concurrency
--self insert
--selfrequired
--importgrouping testable-bottom
--extensionacl on-declarations
--swiftversion 6.2
# Indentation
--indent 4
--tabwidth 4
--indentcase false
--ifdef no-indent
--xcodeindentation enabled
# Wrapping
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--wrapconditions after-first
--wrapreturntype preserve
--closingparen same-line
# Line breaks
--linebreaks lf
--maxwidth 120
# Whitespace
--trimwhitespace always
--emptybraces no-space
--nospaceoperators ...,..<
--ranges no-space
--someAny true
# Spacing
--operatorfunc spaced
# Braces
--allman false
# Organization
--organizetypes class,struct,enum,extension
--extensionmark "MARK: - %t + %p"
--marktypes always
--markextensions always
--structthreshold 0
--enumthreshold 0
# Other
--stripunusedargs closure-only
--semicolons never
--commas always
--header ignore
# Modifier order (match swiftlint expectations)
--modifierorder nonisolated,private,fileprivate,internal,public,open,final,required,override,convenience,lazy,dynamic,static,class,weak,unowned,mutating,nonmutating
# Disable rules
--disable wrapMultilineStatementBraces
--disable blankLinesAtEndOfScope
--disable blankLinesAtStartOfScope
# Enable rules
--enable isEmpty
--enable wrapEnumCases
--enable wrapSwitchCases
# Exclusions
--exclude .build,.swiftpm,DerivedData