-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftformat
More file actions
47 lines (42 loc) · 1.06 KB
/
Copy path.swiftformat
File metadata and controls
47 lines (42 loc) · 1.06 KB
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
# SwiftFormat configuration for solarman-swift
# Reference: https://github.com/nicklockwood/SwiftFormat
# Swift version
--swiftversion 6.2
# File options
--exclude .build
# Format options
--indent 4
--indentcase false
--trimwhitespace always
--voidtype void
--nospaceoperators ..<, ...
--ranges nospace
--wraparguments before-first
--wrapparameters before-first
--wrapcollections before-first
--closingparen balanced
--funcattributes prev-line
--typeattributes prev-line
--varattributes prev-line
--storedvarattrs prev-line
--computedvarattrs prev-line
--complexattributes prev-line
--typeblanklines remove
--organizetypes class,actor,struct,enum,protocol,extension
--marktypes always
--markextensions always
--extensionacl on-declarations
# Rules
--enable blankLineAfterImports
--enable blankLinesBetweenImports
--enable blockComments
--enable docComments
--enable isEmpty
--enable markTypes
--enable organizeDeclarations
--enable sortImports
--enable wrapConditionalBodies
--enable wrapEnumCases
--enable wrapSwitchCases
--disable wrapMultilineStatementBraces
--disable acronyms