-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftformat
66 lines (61 loc) · 1.55 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# Rules
--rules acronyms
--rules isEmpty
--rules andOperator
--rules duplicateImports
--rules elseOnSameLine
--rules indent
--rules numberFormatting
--rules markTypes
--rules organizeDeclarations
--rules preferKeyPath
--rules wrapArguments
--rules wrapAttributes
--rules redundantType
--rules redundantExtensionACL
--rules redundantFileprivate
--rules redundantLet
--rules redundantLetError
--rules redundantNilInit
--rules redundantParens
--rules redundantPattern
--rules redundantReturn
--rules sortImports
--rules spaceAroundBraces
--rules spaceAroundBrackets
--rules spaceAroundComments
--rules spaceInsideComments
--rules spaceInsideGenerics
--rules spaceInsideParens
--rules todos
--rules typeSugar
--rules unusedArguments
--rules wrapConditionalBodies
--rules wrapEnumCases
--rules wrapMultilineStatementBraces
# Disables
--disable blankLinesAtStartOfScope
# Options
--stripunusedargs closure-only # unusedArguments
--elseposition next-line # elseOnSameLine
--indent 2 # indent
--ifdef no-indent # indent
--hexgrouping ignore # numberFormatting
--self remove # redundantSelf
--redundanttype inferred # redundantType
--trimwhitespace always # trailingSpace
--commas always # trailingCommas
--extensionmark MARK: - %c # markTypes
# organizeDeclarations
--beforemarks
--categorymark MARK: - %c
--organizetypes class,struct,enum,extension
# wrapArguments
--wraparguments before-first
--wrapcollections before-first
--wraptypealiases before-first
--wrapconditions before-first
--wrapelements before-first
# wrapAttributes
--funcattributes prev-line
--typeattributes prev-line