forked from zeriontech/Web3Swift
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.swiftlint.yml
276 lines (213 loc) · 4.29 KB
/
.swiftlint.yml
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
whitelist_rules:
- array_init
- attributes
- block_based_kvo
- class_delegate_protocol
- closing_brace
- closure_end_indentation
- closure_parameter_position
- closure_spacing
# - colon
- comma
- compiler_protocol_init
- contains_over_first_not_nil
- control_statement
- custom_rules
- cyclomatic_complexity
- discouraged_optional_boolean
- empty_count
- empty_enum_arguments
- empty_parameters
- empty_parentheses_with_trailing_closure
# - explicit_acl
- explicit_init
# - explicit_type_interface
- fallthrough
- fatal_error_message
- file_length
- first_where
- for_where
- force_cast
- force_try
- force_unwrapping
# - function_body_length
- function_parameter_count
- generic_type_name
- identifier_name
- implicit_getter
- implicitly_unwrapped_optional
- is_disjoint
- large_tuple
- leading_whitespace
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- literal_expression_end_indentation
- multiline_arguments
- multiline_parameters
- multiple_closures_with_trailing_closure
- operator_usage_whitespace
- redundant_discardable_let
- redundant_nil_coalescing
- redundant_void_return
- return_arrow_whitespace
- shorthand_operator
- single_test_class
- sorted_imports
- superfluous_disable_command
- switch_case_alignment
# - type_body_length
# - type_name
- unneeded_break_in_switch
- unneeded_parentheses_in_closure_argument
- unused_closure_parameter
- unused_optional_binding
- vertical_parameter_alignment
- yoda_condition
array_init:
severity: error
attributes:
severity: error
block_based_kvo:
severity: error
class_delegate_protocol:
severity: error
closing_brace:
severity: error
closure_end_indentation:
severity: error
closure_parameter_position:
severity: error
closure_spacing:
severity: error
color:
severity: error
apply_to_dictionaries: false
comma:
severity: error
compiler_protocol_init:
severity: error
contains_over_first_not_nil:
severity: error
control_statement:
severity: error
cyclomatic_complexity:
warning: 5
error: 15
discouraged_optional_boolean:
severity: error
empty_count:
severity: error
empty_enum_arguments:
severity: error
empty_parameters:
severity: error
empty_parentheses_with_trailing_closure:
severity: error
explicit_acl:
severity: warning
explicit_init:
severity: error
explicit_type_interface:
severity: error
fallthrough:
severity: error
fatal_error_message:
severity: error
file_length:
warning: 200
error: 250
ignore_comment_only_lines: true
first_where:
severity: error
for_where:
severity: error
force_cast:
severity: error
force_try:
severity: error
force_unwrapping:
severity: error
function_body_length:
warning: 30
error: 60
function_parameter_count:
warning: 5
error: 7
identifier_name:
min_length:
warning: 0
error: 0
max_length:
warning: 20
error: 30
excluded:
- r
- s
- v
implicit_getter:
severity: error
implicitly_unwrapped_optional:
severity: error
is_disjoint:
severity: error
large_tuple:
error: 2
leading_whitespace:
severity: error
legacy_cggeometry_functions:
severity: error
legacy_constant:
severity: error
legacy_constructor:
severity: error
literal_expression_end_indentation:
severity: error
multiline_arguments:
severity: error
first_argument_location: next_line
multiline_parameters:
severity: error
multiple_closures_with_trailing_closure:
severity: error
operator_usage_whitespace:
severity: error
redundant_discardable_let:
severity: error
redundant_nil_coalescing:
severity: error
redundant_void_return:
severity: error
return_arrow_whitespace:
severity: error
shorthand_operator:
severity: error
single_test_class:
severity: error
sorted_imports:
severity: error
switch_case_alignment:
severity: error
type_body_length:
warning: 200
error: 250
type_name:
min_length:
warning: 0
error: 0
max_length:
warning: 20
error: 30
unneeded_break_in_switch:
severity: error
unneeded_parentheses_in_closure_argument:
severity: error
unused_closure_parameter:
severity: error
unused_optional_binding:
severity: error
vertical_parameter_alignment:
severity: error
yoda_condition:
severity: error
reporter: "xcode"