-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.swiftformat
40 lines (31 loc) · 1.16 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
# https://github.com/nicklockwood/SwiftFormat/blob/master/Rules.md
--exclude iOSTests, iOSUITests, Package.swift, fastlane/** , LocalPackages/Core/Tests, LocalPackages/Client/Tests, LocalPackages/DesignSystem/Tests, LocalPackages/Entities/Tests, LocalPackages/PassRustCore, misc/**, **/Package.swift, **/ObfuscatedConstants.swift, **/*.pb.swift, LocalPackages/Client/Sources/ClientMocks, LocalPackages/Core/Sources/CoreMocks, LocalPackages/UseCases/Sources/UseCasesMocks, LocalPackages/Entities/Sources/EntitiesMocks
# format options
--symlinks ignore
--swiftversion 5.9
# format options
--closingparen same-line
--commas inline
--comments indent
--decimalgrouping 3,4
--exponentcase lowercase
--exponentgrouping disabled
--fractiongrouping disabled
--ifdef no-indent
--importgrouping testable-top
--nospaceoperators ..<, ...
--selfrequired validate
--stripunusedargs closure-only
--wraparguments after-first
--wrapcollections after-first
--wrapparameters after-first
--disable wrapArguments
--indent 4
--maxwidth 115
--wrapcollections before-first
--ranges no-space
# rules
--disable wrapMultilineStatementBraces
--enable isEmpty,\
blankLineAfterImports,\
sortSwitchCases,\