forked from dan-hart/DHDeclarable
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftformat.yml
40 lines (34 loc) · 857 Bytes
/
.swiftformat.yml
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
# See: https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
--swiftversion 5.0
# format options
--indent 4
--wraparguments after-first
--wrapparameters after-first
--wrapcollections before-first
--funcattributes same-line
--typeattributes same-line
--groupedextension MARK: - %c
--categorymark MARK: - %c
--lineaftermarks false
# opt-in
--enable \
modifierorder, \
acronyms, \
andOperator, \
blankLinesBetweenImports, \
blockComments, \
isEmpty, \
markTypes, \
organizeDeclarations, \
sortedSwitchCases, \
wrapConditionalBodies, \
wrapEnumCases, \
wrapSwitchCases
# rules
--disable \
blankLinesAroundMark, \
emptyBraces, \
linebreakAtEndOfFile, \
unusedArguments, \
wrapMultilineStatementBraces
# See: https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md