-
Notifications
You must be signed in to change notification settings - Fork 76
/
.swiftformat
46 lines (38 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
# file options
--exclude scripts,Templates,.build,ApolloCodegen,.devxp,build,.tuist-bin
--exclude **/Derived/**.swift
--exclude **/Generated/**.swift
--exclude **/SwifterSwift/**.swift
--exclude **/Apollo/**.swift
--exclude **/build/**.swift
--exclude **/.build/**.swift
--exclude .vscode
--swiftversion 5.10
# format options
--indent 2
--maxwidth 150
--funcattributes prev-line
--typeattributes prev-line
--varattributes same-line
--wraparguments preserve
--wrapcollections before-first
--wrapconditions after-first
--wrapparameters preserve
--wrapternary before-operators
--header ""
# rules
--disable \
andOperator, \
wrapMultilineStatementBraces, \
wrapSwitchCases, \
organizeDeclarations, \
wrapEnumCases, \
redundantNilInit
--enable \
blankLinesBetweenImports, \
blankLineAfterImports, \
markTypes, \
blockComments, \
sortSwitchCases, \
docComments, \
isEmpty