-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftformat
More file actions
27 lines (22 loc) · 719 Bytes
/
.swiftformat
File metadata and controls
27 lines (22 loc) · 719 Bytes
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
# https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
# file options
# --exclude Tests/XCTestManifests.swift,Snapshots,Pods
--exclude BuildTools
# format options
--indent 4
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--header "\n{file}\n\nCopyright (c) {year} m_rn\nCreated by Miharu Naruse on {created}.\n"
# enable
--enable markTypes
# disable
--disable emptyBraces
--disable numberFormatting
--disable redundantLet
--disable redundantRawValues
--disable trailingCommas
--disable unusedArguments
--disable redundantReturn
--disable wrapMultilineStatementBraces
--disable preferKeyPath # Convert trivial map { $0.foo } closures to keyPath-based syntax.