forked from zotero/zotero-ios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.swiftlint.yml
276 lines (198 loc) · 5.13 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
only_rules:
# default rules
- block_based_kvo
- closing_brace
- closure_parameter_position
- colon
- comma
- computed_accessors_order
- control_statement
- deployment_target
- discouraged_direct_init
- empty_enum_arguments
- empty_parameters
- empty_parentheses_with_trailing_closure
- implicit_getter
- leading_whitespace
- legacy_cggeometry_functions
- legacy_constant
- legacy_constructor
- legacy_hashing
- legacy_nsgeometry_functions
- legacy_random
- mark
- multiple_closures_with_trailing_closure
- no_space_in_method_call
- ns_number_init_as_function_reference
- opening_brace
- operator_whitespace
- orphaned_doc_comment
- private_over_fileprivate
- private_unit_test
- protocol_property_accessors_order
- redundant_discardable_let
- redundant_optional_initialization
- redundant_set_access_control
- redundant_string_enum_value
- redundant_void_return
- return_arrow_whitespace
- self_in_property_initialization
- shorthand_operator
- statement_position
- switch_case_alignment
- syntactic_sugar
- trailing_comma
- trailing_newline
- trailing_semicolon
- trailing_whitespace
- unavailable_condition
- unneeded_break_in_switch
- unused_closure_parameter
- unused_enumerated
- unused_optional_binding
- unused_setter_value
- vertical_parameter_alignment
- vertical_whitespace
- void_return
# opt-in rules
- array_init
- closure_end_indentation
- closure_spacing
- collection_alignment
- contains_over_first_not_nil
- contains_over_range_nil_comparison
- direct_return
- discarded_notification_center_observer
- empty_collection_literal
- empty_count
- empty_string
- fallthrough
- flatmap_over_map_reduce
- identical_operands
- joined_default_parameter
- operator_usage_whitespace
- overridden_super_call
- period_spacing
- prefer_zero_over_explicit_init
- self_binding
- vertical_parameter_alignment_on_call
- vertical_whitespace_between_cases
- vertical_whitespace_closing_braces
- vertical_whitespace_opening_braces
- yoda_condition
array_init: error
block_based_kvo: error
closing_brace: error
closure_end_indentation: error
closure_parameter_position: error
closure_spacing: error
collection_alignment:
severity: error
align_colons: false
colon:
severity: error
# flexible_right_spacing: true
# apply_to_dictionaries: false
comma: error
contains_over_first_not_nil: error
contains_over_range_nil_comparison: error
control_statement: error
deployment_target:
severity: error
iOSApplicationExtension_deployment_target: 14.7
iOS_deployment_target: 14.7
direct_return: error
discarded_notification_center_observer: error
discouraged_direct_init:
severity: error
empty_collection_literal: error
empty_count:
severity: error
only_after_dot: true
empty_enum_arguments: error
empty_parameters: error
empty_parentheses_with_trailing_closure: error
empty_string: error
fallthrough: error
flatmap_over_map_reduce: error
identical_operands: error
implicit_getter: error
joined_default_parameter: error
leading_whitespace: error
legacy_cggeometry_functions: error
legacy_constant: error
legacy_constructor: error
legacy_hashing: error
legacy_nsgeometry_functions: error
legacy_random: error
mark: error
multiple_closures_with_trailing_closure: error
no_space_in_method_call: error
ns_number_init_as_function_reference: error
opening_brace:
severity: error
allow_multiline_func: true
operator_usage_whitespace:
severity: error
lines_look_around: 2
skip_aligned_constants: true
allowed_no_space_operators: ["...", "..<"]
operator_whitespace: error
orphaned_doc_comment: error
overridden_super_call:
severity: error
excluded: []
included: ["*"]
period_spacing: error
prefer_zero_over_explicit_init: error
private_over_fileprivate:
severity: error
private_unit_test:
warning: XCTestCase
protocol_property_accessors_order: error
redundant_discardable_let: error
redundant_optional_initialization: error
redundant_set_access_control: error
redundant_string_enum_value: error
redundant_void_return: error
return_arrow_whitespace: error
self_binding:
severity: error
bind_identifier: self
self_in_property_initialization: error
shorthand_operator: error
statement_position:
statement_mode: default
severity: error
switch_case_alignment:
severity: error
syntactic_sugar: error
trailing_comma:
severity: error
mandatory_comma: false
trailing_newline: error
trailing_semicolon: error
trailing_whitespace:
severity: error
ignores_empty_lines: true
ignores_comments: true
unavailable_condition: error
unneeded_break_in_switch: error
unused_closure_parameter: error
unused_enumerated: error
unused_optional_binding:
severity: error
ignore_optional_try: false
unused_setter_value: error
vertical_parameter_alignment: error
vertical_parameter_alignment_on_call: error
vertical_whitespace:
severity: error
max_empty_lines: 1
vertical_whitespace_between_cases: error
vertical_whitespace_closing_braces:
severity: error
only_enforce_before_trivial_lines: false
vertical_whitespace_opening_braces: error
void_return: error
yoda_condition: error