-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftformat
53 lines (53 loc) · 1.39 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
47
48
49
50
51
52
53
--swiftversion 6.0
# format
--allman false
--indent 4
--maxwidth 120
# options
--self insert # redundantSelf
--importgrouping testable-bottom # sortImports
--trimwhitespace always
--indentcase false
--ifdef no-indent #indent
--wraparguments before-first # wrapArguments
--wrapparameters before-first # wrapArguments
--wrapcollections before-first # wrapCollections
--commas inline
--elseposition same-line
--guardelse next-line
# --closingparen balanced # wrapArguments
--funcattributes prev-line # wrapAttributes
--typeattributes prev-line # wrapAttributes
# rules
--rules todos, \
anyObjectProtocol, \
redundantParens, \
redundantReturn, \
redundantSelf, \
sortImports, \
strongifiedSelf, \
trailingCommas, \
trailingSpace, \
wrapArguments, \
wrapMultilineStatementBraces, \
indent, \
wrapAttributes, \
void, \
fileHeader, \
trailingclosures, \
andOperator, \
assertionFailures, \
blankLinesAroundMark, \
blankLinesAtEndOfScope, \
blankLinesAtStartOfScope, \
blankLinesBetweenImports, \
blankLinesBetweenScopes, \
preferKeyPath, \
redundantBreak, \
redundantClosure, \
redundantExtensionACL, \
elseOnSameLine
--exclude **/*Generated.swift
--exclude **/*.metal.swift
--exclude **/*.grpc.swift
--header strip