-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.swiftformat
35 lines (24 loc) · 916 Bytes
/
.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
# Language version.
--swiftversion 5.6
# Ignore generated files.
--exclude Carthage/*,Pods/*,**/XCTestManifests.swift,**/*.grpc.swift,**/*.pb.swift
--indent 2
--maxwidth 100
# Require explicit self
--self insert
--importgrouping testable-bottom
--commas always
# Only remove unused args in closures.
--stripunusedargs closure-only
# Wrap before the first argument (if wrapping is necessary).
--wraparguments before-first
# Don't indent #if blocks
--ifdef no-indent
# This rule doesn't always work as we'd expect: specifically when we return a
# succeeded future whose type is a closure then that closure is incorrectly
# treated as a trailing closure. This is relevant because the service provider
# API for client streaming RPCs has this exact shape.
--disable trailingClosures
# Don't wrap the opening brace of multiline statements.
--disable wrapMultilineStatementBraces
--disable initCoderUnavailable