-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.swiftformat
49 lines (42 loc) · 1.18 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
# Excluded files
## Generated files
--exclude **/*.pb.swift # Protobuf
--exclude **/ColorDefines.swift # Colors
--exclude **/SnapshotHelper.swift
## Vendored code
--exclude DerivedData/**
--exclude fastlane/**
--exclude NaClCrypto/**
--exclude protobuf/**
--exclude SaltyRTC/**
--exclude Vendor/**
--exclude WebRTC**
# Format options
--asynccapturing XCTAssertThrowsAsyncError
--elseposition next-line
--emptybraces spaced
--extensionacl on-declarations
--groupedextension "MARK: - %c"
--importgrouping testable-last
--indentstrings true
--marktypes never
--maxwidth 120
--ranges no-space
--redundanttype inferred
--self init-only
--semicolons never
--stripunusedargs closure-only
--trimwhitespace nonblank-lines # Waiting for https://github.com/nicklockwood/SwiftFormat/issues/1664
--wraparguments before-first
--wrapcollections before-first
--wrapparameters before-first
# Rules
--enable acronyms
--enable blockComments
--enable isEmpty
--enable markTypes
--enable wrapConditionalBodies
--enable wrapMultilineConditionalAssignment
--disable blankLinesAtStartOfScope # Waiting for https://github.com/nicklockwood/SwiftFormat/issues/583
--disable sortTypealiases
--disable wrapMultilineStatementBraces