-
Notifications
You must be signed in to change notification settings - Fork 33
/
.rubocop_todo.yml
339 lines (291 loc) · 9.34 KB
/
.rubocop_todo.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
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2016-03-24 13:49:46 -0500 using RuboCop version 0.38.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.
# Offense count: 1
# Cop supports --auto-correct.
Lint/DeprecatedClassMethods:
Exclude:
- 'lib/generators/surus/hstore/templates/install_hstore.rb'
# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: AlignWith, SupportedStyles, AutoCorrect.
# SupportedStyles: keyword, variable, start_of_line
Lint/EndAlignment:
Enabled: false
# Offense count: 1
Lint/ShadowingOuterLocalVariable:
Exclude:
- 'lib/surus/hstore/serializer.rb'
# Offense count: 1
Lint/UnderscorePrefixedVariableName:
Exclude:
- 'lib/surus/json/query.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks.
Lint/UnusedBlockArgument:
Exclude:
- 'bench/hstore_find.rb'
# Offense count: 7
Lint/UselessAssignment:
Exclude:
- 'lib/generators/surus/hstore/templates/install_hstore.rb'
- 'spec/json/json_spec.rb'
# Offense count: 7
Metrics/AbcSize:
Max: 30
# Offense count: 1
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 245
# Offense count: 4
Metrics/CyclomaticComplexity:
Max: 10
# Offense count: 76
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
# URISchemes: http, https
Metrics/LineLength:
Max: 151
# Offense count: 7
# Configuration parameters: CountComments.
Metrics/MethodLength:
Max: 220
# Offense count: 2
Metrics/PerceivedComplexity:
Max: 12
# Offense count: 1
Performance/TimesMap:
Exclude:
- 'bench/hstore_find.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: outdent, indent
Style/AccessModifierIndentation:
Enabled: false
# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle, SupportedLastArgumentHashStyles.
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Style/AlignHash:
Exclude:
- 'bench/synchronous_commit.rb'
# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: with_first_parameter, with_fixed_indentation
Style/AlignParameters:
Exclude:
- 'spec/spec_helper.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
Exclude:
- 'lib/surus/hstore/serializer.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep, IndentationWidth.
# SupportedStyles: case, end
Style/CaseIndentation:
Enabled: false
# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: is_a?, kind_of?
Style/ClassCheck:
Exclude:
- 'lib/surus/hstore/serializer.rb'
- 'lib/surus/json/query.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: SingleLineConditionsOnly.
Style/ConditionalAssignment:
Exclude:
- 'lib/generators/surus/hstore/templates/install_hstore.rb'
# Offense count: 22
Style/Documentation:
Exclude:
- 'spec/**/*'
- 'test/**/*'
- 'bench/benchmark_helper.rb'
- 'lib/generators/surus/hstore/install_generator.rb'
- 'lib/generators/surus/hstore/templates/install_hstore.rb'
- 'lib/surus/array/scope.rb'
- 'lib/surus/hstore/scope.rb'
- 'lib/surus/hstore/serializer.rb'
- 'lib/surus/json/array_agg_query.rb'
- 'lib/surus/json/association_scope_builder.rb'
- 'lib/surus/json/belongs_to_scope_builder.rb'
- 'lib/surus/json/has_and_belongs_to_many_scope_builder.rb'
- 'lib/surus/json/has_many_scope_builder.rb'
- 'lib/surus/json/model.rb'
- 'lib/surus/json/query.rb'
- 'lib/surus/json/row_query.rb'
- 'lib/surus/synchronous_commit/connection.rb'
# Offense count: 4
# Cop supports --auto-correct.
Style/ElseAlignment:
Exclude:
- 'lib/surus/hstore/serializer.rb'
- 'lib/surus/json/query.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/EmptyLines:
Exclude:
- 'bench/hstore_find.rb'
- 'lib/generators/surus/hstore/templates/install_hstore.rb'
# Offense count: 3
# Cop supports --auto-correct.
Style/EmptyLinesAroundAccessModifier:
Exclude:
- 'lib/generators/surus/hstore/templates/install_hstore.rb'
- 'lib/surus/array/scope.rb'
- 'lib/surus/json/query.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: empty_lines, no_empty_lines
Style/EmptyLinesAroundClassBody:
Exclude:
- 'lib/generators/surus/hstore/install_generator.rb'
- 'lib/surus/json/has_and_belongs_to_many_scope_builder.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/EmptyLinesAroundMethodBody:
Exclude:
- 'lib/generators/surus/hstore/templates/install_hstore.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Style/ExtraSpacing:
Exclude:
- 'spec/factories.rb'
# Offense count: 1
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
Exclude:
- 'lib/generators/surus/hstore/install_generator.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: normal, rails
Style/IndentationConsistency:
Exclude:
- 'lib/surus/json/query.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: Width.
Style/IndentationWidth:
Exclude:
- 'lib/surus/hstore/serializer.rb'
- 'lib/surus/json/query.rb'
# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: aligned, indented
Style/MultilineMethodCallIndentation:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
Style/MutableConstant:
Exclude:
- 'lib/surus/version.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/NilComparison:
Exclude:
- 'lib/surus/hstore/serializer.rb'
# Offense count: 2
# Cop supports --auto-correct.
Style/NumericLiterals:
MinDigits: 6
# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
Exclude:
- 'spec/array/scope_spec.rb'
- 'spec/hstore/serializer_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantParentheses:
Exclude:
- 'lib/generators/surus/hstore/templates/install_hstore.rb'
# Offense count: 5
# Cop supports --auto-correct.
Style/SpaceAfterComma:
Exclude:
- 'bench/benchmark_helper.rb'
- 'spec/hstore/serializer_spec.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceAroundEqualsInParameterDefault:
EnforcedStyle: no_space
# Offense count: 1
# Cop supports --auto-correct.
Style/SpaceAroundKeyword:
Exclude:
- 'lib/generators/surus/hstore/templates/install_hstore.rb'
# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceBeforeBlockBraces:
Enabled: false
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
# SupportedStyles: space, no_space
Style/SpaceInsideBlockBraces:
Enabled: false
# Offense count: 74
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceInsideHashLiteralBraces:
Enabled: false
# Offense count: 272
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
# SupportedStyles: single_quotes, double_quotes
Style/StringLiterals:
Enabled: false
# Offense count: 1
# Cop supports --auto-correct.
Style/Tab:
Exclude:
- 'lib/surus/json/query.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles.
# SupportedStyles: comma, consistent_comma, no_comma
Style/TrailingCommaInLiteral:
Exclude:
- 'spec/hstore/serializer_spec.rb'
# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, IgnoreClassMethods, Whitelist.
# Whitelist: to_ary, to_a, to_c, to_enum, to_h, to_hash, to_i, to_int, to_io, to_open, to_path, to_proc, to_r, to_regexp, to_str, to_s, to_sym
Style/TrivialAccessors:
Exclude:
- 'bench/benchmark_helper.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/UnneededInterpolation:
Exclude:
- 'lib/surus/json/has_many_scope_builder.rb'
# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles, MinSize, WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
Enabled: false