-
Notifications
You must be signed in to change notification settings - Fork 41
/
.swiftformat
118 lines (98 loc) · 2.35 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# file options
--exclude Pods
--exclude EventsApp/EventsAPI.swift
# rules with format options
--enable braces
--allman false
--enable elseOnSameLine
--elseposition same-line
--enable fileHeader
--header ignore
--enable hoistPatternLet
--patternlet inline
--enable indent
--ifdef outdent
--indent 4
--indentcase false
--xcodeindentation enabled
--enable linebreaks
--linebreaks lf
--enable numberFormatting
--binarygrouping none
--decimalgrouping 3
--exponentcase lowercase
--exponentgrouping enabled
--fractiongrouping enabled
--hexgrouping none
--hexliteralcase lowercase
--octalgrouping none
--enable ranges
--ranges spaced
--enable redundantSelf
--self init-only
--selfrequired
--enable semicolons
--semicolons never
--enable sortedImports
--importgrouping testable-bottom
--enable spaceAroundOperators
--operatorfunc spaced
--enable trailingClosures
--trailingclosures
--enable trailingCommas
--commas inline
--enable trailingSpace
--trimwhitespace always
--enable unusedArguments
--stripunusedargs closure-only
--enable void
--empty void
--enable wrapArguments
--closingparen same-line
--wraparguments after-first
--wrapcollections before-first
# standalone rules
--enable andOperator
--enable anyObjectProtocol
--enable blankLinesAroundMark
--enable blankLinesAtEndOfScope
--enable blankLinesAtStartOfScope
--enable blankLinesBetweenScopes
--enable consecutiveBlankLines
--enable consecutiveSpaces
--enable duplicateImports
--enable emptyBraces
--enable isEmpty
--enable leadingDelimiters
--enable linebreakAtEndOfFile
--enable redundantBackticks
--enable redundantBreak
--enable redundantExtensionACL
--enable redundantFileprivate
--enable redundantGet
--enable redundantInit
--enable redundantLet
--enable redundantLetError
--enable redundantNilInit
--enable redundantObjc
--enable redundantParens
--enable redundantPattern
--enable redundantRawValues
--enable redundantReturn
--enable redundantVoidReturnType
--enable spaceAroundBraces
--enable spaceAroundBrackets
--enable spaceAroundComments
--enable spaceAroundGenerics
--enable spaceAroundParens
--enable spaceInsideBraces
--enable spaceInsideBrackets
--enable spaceInsideComments
--enable spaceInsideGenerics
--enable spaceInsideParens
--enable specifiers
--enable strongOutlets
--enable strongifiedSelf
--enable todos
--enable typeSugar
--enable yodaConditions