maremma 4.4 → 4.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 20c99d978c91ba1d49c9ad4ecd3479d956ad6f94f97600890dc7b3683192a31c
4
- data.tar.gz: 6471d37baf4cc60f94382b342a140f570e28bf2301503b6906281657743594c3
3
+ metadata.gz: 50a43c2084b048f1b3c679dcc1391567d6e9e4d6f53bc7fa8ddd9b2538c5b372
4
+ data.tar.gz: 9893bf7d9194ae6ad20af4aed30d1d0ba9f3ceb30e21de0d72ce626c1fdd7fa0
5
5
  SHA512:
6
- metadata.gz: 67e47e97da35e0470dba9a9c90586511cccf4c955f1b3c9f55ded8979be5ced35480d6be57054a13ee0a5aa9a5d756ca9cf1bb427fccb2abadb92eb32b81e4cf
7
- data.tar.gz: c75f469c6f6d6dcb98ae32876ce7d0b300c3d8aa3f8bdd75654f1b96ea194de3bae945154206d919176de638791f2950482ecbb1d2ccebc7c4f25131f0251e94
6
+ metadata.gz: 0c24ee556e9a440543ae773703721dde32c75a33bbdafe3b670a3e8ae478fe1c1983de4f6a12435670c0f65f8b91b271b5645b85f0aaf775cf06d6473dc8d77f
7
+ data.tar.gz: 72f7b16979c68de78b6cdc9a2c93f8ced81d27f889f914899ccdab4101b0e0d49912265b7359c0a453bb030452c98f01d9304bbf3b23eeb5acd6aae62ca6a706
@@ -0,0 +1,653 @@
1
+ AllCops:
2
+ Exclude:
3
+ - db/schema.rb
4
+
5
+ require:
6
+ - rubocop-performance
7
+
8
+ Naming/AccessorMethodName:
9
+ Description: Check the naming of accessor methods for get_/set_.
10
+ Enabled: false
11
+
12
+ Style/Alias:
13
+ Description: 'Use alias_method instead of alias.'
14
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
15
+ Enabled: false
16
+
17
+ Style/ArrayJoin:
18
+ Description: 'Use Array#join instead of Array#*.'
19
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
20
+ Enabled: false
21
+
22
+ Style/AsciiComments:
23
+ Description: 'Use only ascii symbols in comments.'
24
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
25
+ Enabled: false
26
+
27
+ Naming/AsciiIdentifiers:
28
+ Description: 'Use only ascii symbols in identifiers.'
29
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
30
+ Enabled: false
31
+
32
+ Style/Attr:
33
+ Description: 'Checks for uses of Module#attr.'
34
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
35
+ Enabled: false
36
+
37
+ Metrics/BlockNesting:
38
+ Description: 'Avoid excessive block nesting'
39
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
40
+ Enabled: false
41
+
42
+ Style/CaseEquality:
43
+ Description: 'Avoid explicit use of the case equality operator(===).'
44
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
45
+ Enabled: false
46
+
47
+ Style/CharacterLiteral:
48
+ Description: 'Checks for uses of character literals.'
49
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
50
+ Enabled: false
51
+
52
+ Style/ClassAndModuleChildren:
53
+ Description: 'Checks style of children classes and modules.'
54
+ Enabled: true
55
+ EnforcedStyle: nested
56
+
57
+ Metrics/ClassLength:
58
+ Description: 'Avoid classes longer than 100 lines of code.'
59
+ Enabled: false
60
+
61
+ Metrics/ModuleLength:
62
+ Description: 'Avoid modules longer than 100 lines of code.'
63
+ Enabled: false
64
+
65
+ Style/ClassVars:
66
+ Description: 'Avoid the use of class variables.'
67
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
68
+ Enabled: false
69
+
70
+ Style/CollectionMethods:
71
+ Enabled: true
72
+ PreferredMethods:
73
+ find: detect
74
+ inject: reduce
75
+ collect: map
76
+ find_all: select
77
+
78
+ Style/ColonMethodCall:
79
+ Description: 'Do not use :: for method call.'
80
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
81
+ Enabled: false
82
+
83
+ Style/CommentAnnotation:
84
+ Description: >-
85
+ Checks formatting of special comments
86
+ (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
87
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
88
+ Enabled: false
89
+
90
+ Metrics/AbcSize:
91
+ Description: >-
92
+ A calculated magnitude based on number of assignments,
93
+ branches, and conditions.
94
+ Enabled: false
95
+
96
+ Metrics/BlockLength:
97
+ CountComments: true # count full line comments?
98
+ Max: 25
99
+ ExcludedMethods: []
100
+ Exclude:
101
+ - "spec/**/*"
102
+
103
+ Metrics/CyclomaticComplexity:
104
+ Description: >-
105
+ A complexity metric that is strongly correlated to the number
106
+ of test cases needed to validate a method.
107
+ Enabled: false
108
+
109
+ Rails/Delegate:
110
+ Description: 'Prefer delegate method for delegations.'
111
+ Enabled: false
112
+
113
+ Style/PreferredHashMethods:
114
+ Description: 'Checks use of `has_key?` and `has_value?` Hash methods.'
115
+ StyleGuide: '#hash-key'
116
+ Enabled: false
117
+
118
+ Style/Documentation:
119
+ Description: 'Document classes and non-namespace modules.'
120
+ Enabled: false
121
+
122
+ Style/DoubleNegation:
123
+ Description: 'Checks for uses of double negation (!!).'
124
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
125
+ Enabled: false
126
+
127
+ Style/EachWithObject:
128
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
129
+ Enabled: false
130
+
131
+ Style/EmptyLiteral:
132
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
133
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
134
+ Enabled: false
135
+
136
+ # Checks whether the source file has a utf-8 encoding comment or not
137
+ # AutoCorrectEncodingComment must match the regex
138
+ # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
139
+ Style/Encoding:
140
+ Enabled: false
141
+
142
+ Style/EvenOdd:
143
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
144
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
145
+ Enabled: false
146
+
147
+ Naming/FileName:
148
+ Description: 'Use snake_case for source file names.'
149
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
150
+ Enabled: false
151
+
152
+ Style/FrozenStringLiteralComment:
153
+ Description: >-
154
+ Add the frozen_string_literal comment to the top of files
155
+ to help transition from Ruby 2.3.0 to Ruby 3.0.
156
+ Enabled: false
157
+
158
+ Lint/FlipFlop:
159
+ Description: 'Checks for flip flops'
160
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
161
+ Enabled: false
162
+
163
+ Style/FormatString:
164
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
165
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
166
+ Enabled: false
167
+
168
+ Style/GlobalVars:
169
+ Description: 'Do not introduce global variables.'
170
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
171
+ Reference: 'http://www.zenspider.com/Languages/Ruby/QuickRef.html'
172
+ Enabled: false
173
+
174
+ Style/GuardClause:
175
+ Description: 'Check for conditionals that can be replaced with guard clauses'
176
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
177
+ Enabled: false
178
+
179
+ Style/IfUnlessModifier:
180
+ Description: >-
181
+ Favor modifier if/unless usage when you have a
182
+ single-line body.
183
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
184
+ Enabled: false
185
+
186
+ Style/IfWithSemicolon:
187
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
188
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
189
+ Enabled: false
190
+
191
+ Style/InlineComment:
192
+ Description: 'Avoid inline comments.'
193
+ Enabled: false
194
+
195
+ Style/Lambda:
196
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
197
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
198
+ Enabled: false
199
+
200
+ Style/LambdaCall:
201
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
202
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
203
+ Enabled: false
204
+
205
+ Style/LineEndConcatenation:
206
+ Description: >-
207
+ Use \ instead of + or << to concatenate two string literals at
208
+ line end.
209
+ Enabled: false
210
+
211
+ Metrics/LineLength:
212
+ Description: 'Limit lines to 80 characters.'
213
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
214
+ Max: 80
215
+
216
+ Metrics/MethodLength:
217
+ Description: 'Avoid methods longer than 10 lines of code.'
218
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
219
+ Enabled: false
220
+
221
+ Style/ModuleFunction:
222
+ Description: 'Checks for usage of `extend self` in modules.'
223
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
224
+ Enabled: false
225
+
226
+ Style/MultilineBlockChain:
227
+ Description: 'Avoid multi-line chains of blocks.'
228
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#single-line-blocks'
229
+ Enabled: false
230
+
231
+ Style/NegatedIf:
232
+ Description: >-
233
+ Favor unless over if for negative conditions
234
+ (or control flow or).
235
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
236
+ Enabled: false
237
+
238
+ Style/NegatedWhile:
239
+ Description: 'Favor until over while for negative conditions.'
240
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
241
+ Enabled: false
242
+
243
+ Style/Next:
244
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
245
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
246
+ Enabled: false
247
+
248
+ Style/NilComparison:
249
+ Description: 'Prefer x.nil? to x == nil.'
250
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
251
+ Enabled: false
252
+
253
+ Style/Not:
254
+ Description: 'Use ! instead of not.'
255
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
256
+ Enabled: false
257
+
258
+ Style/NumericLiterals:
259
+ Description: >-
260
+ Add underscores to large numeric literals to improve their
261
+ readability.
262
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
263
+ Enabled: false
264
+
265
+ Style/OneLineConditional:
266
+ Description: >-
267
+ Favor the ternary operator(?:) over
268
+ if/then/else/end constructs.
269
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
270
+ Enabled: false
271
+
272
+ Naming/BinaryOperatorParameterName:
273
+ Description: 'When defining binary operators, name the argument other.'
274
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
275
+ Enabled: false
276
+
277
+ Metrics/ParameterLists:
278
+ Description: 'Avoid parameter lists longer than three or four parameters.'
279
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
280
+ Enabled: false
281
+
282
+ Style/PercentLiteralDelimiters:
283
+ Description: 'Use `%`-literal delimiters consistently'
284
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
285
+ Enabled: false
286
+
287
+ Style/PerlBackrefs:
288
+ Description: 'Avoid Perl-style regex back references.'
289
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
290
+ Enabled: false
291
+
292
+ Naming/PredicateName:
293
+ Description: 'Check the names of predicate methods.'
294
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
295
+ ForbiddenPrefixes:
296
+ - is_
297
+ Exclude:
298
+ - spec/**/*
299
+
300
+ Style/Proc:
301
+ Description: 'Use proc instead of Proc.new.'
302
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
303
+ Enabled: false
304
+
305
+ Style/RaiseArgs:
306
+ Description: 'Checks the arguments passed to raise/fail.'
307
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
308
+ Enabled: false
309
+
310
+ Style/RegexpLiteral:
311
+ Description: 'Use / or %r around regular expressions.'
312
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
313
+ Enabled: false
314
+
315
+ Style/Sample:
316
+ Description: >-
317
+ Use `sample` instead of `shuffle.first`,
318
+ `shuffle.last`, and `shuffle[Fixnum]`.
319
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
320
+ Enabled: false
321
+
322
+ Style/SelfAssignment:
323
+ Description: >-
324
+ Checks for places where self-assignment shorthand should have
325
+ been used.
326
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
327
+ Enabled: false
328
+
329
+ Style/SingleLineBlockParams:
330
+ Description: 'Enforces the names of some block params.'
331
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
332
+ Enabled: false
333
+
334
+ Style/SingleLineMethods:
335
+ Description: 'Avoid single-line methods.'
336
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
337
+ Enabled: false
338
+
339
+ Style/SignalException:
340
+ Description: 'Checks for proper usage of fail and raise.'
341
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
342
+ Enabled: false
343
+
344
+ Style/SpecialGlobalVars:
345
+ Description: 'Avoid Perl-style global variables.'
346
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
347
+ Enabled: false
348
+
349
+ Style/StringLiterals:
350
+ Description: 'Checks if uses of quotes match the configured preference.'
351
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
352
+ EnforcedStyle: double_quotes
353
+ Enabled: true
354
+
355
+ Style/TrailingCommaInArguments:
356
+ Description: 'Checks for trailing comma in argument lists.'
357
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
358
+ EnforcedStyleForMultiline: comma
359
+ SupportedStylesForMultiline:
360
+ - comma
361
+ - consistent_comma
362
+ - no_comma
363
+ Enabled: true
364
+
365
+ Style/TrailingCommaInArrayLiteral:
366
+ Description: 'Checks for trailing comma in array literals.'
367
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
368
+ EnforcedStyleForMultiline: comma
369
+ SupportedStylesForMultiline:
370
+ - comma
371
+ - consistent_comma
372
+ - no_comma
373
+ Enabled: true
374
+
375
+ Style/TrailingCommaInHashLiteral:
376
+ Description: 'Checks for trailing comma in hash literals.'
377
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
378
+ EnforcedStyleForMultiline: comma
379
+ SupportedStylesForMultiline:
380
+ - comma
381
+ - consistent_comma
382
+ - no_comma
383
+ Enabled: true
384
+
385
+ Style/TrivialAccessors:
386
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
387
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
388
+ Enabled: false
389
+
390
+ Style/VariableInterpolation:
391
+ Description: >-
392
+ Don't interpolate global, instance and class variables
393
+ directly in strings.
394
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
395
+ Enabled: false
396
+
397
+ Style/WhenThen:
398
+ Description: 'Use when x then ... for one-line cases.'
399
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
400
+ Enabled: false
401
+
402
+ Style/WhileUntilModifier:
403
+ Description: >-
404
+ Favor modifier while/until usage when you have a
405
+ single-line body.
406
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
407
+ Enabled: false
408
+
409
+ Style/WordArray:
410
+ Description: 'Use %w or %W for arrays of words.'
411
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
412
+ Enabled: false
413
+
414
+ # Layout
415
+
416
+ Layout/ParameterAlignment:
417
+ Description: 'Here we check if the parameters on a multi-line method call or definition are aligned.'
418
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-double-indent'
419
+ Enabled: false
420
+
421
+ Layout/ConditionPosition:
422
+ Description: >-
423
+ Checks for condition placed in a confusing position relative to
424
+ the keyword.
425
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
426
+ Enabled: false
427
+
428
+ Layout/DotPosition:
429
+ Description: 'Checks the position of the dot in multi-line method calls.'
430
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
431
+ EnforcedStyle: trailing
432
+
433
+ Layout/ExtraSpacing:
434
+ Description: 'Do not use unnecessary spacing.'
435
+ Enabled: true
436
+
437
+ Layout/MultilineOperationIndentation:
438
+ Description: >-
439
+ Checks indentation of binary operations that span more than
440
+ one line.
441
+ Enabled: true
442
+ EnforcedStyle: indented
443
+
444
+ Layout/MultilineMethodCallIndentation:
445
+ Description: >-
446
+ Checks indentation of method calls with the dot operator
447
+ that span more than one line.
448
+ Enabled: true
449
+ EnforcedStyle: indented
450
+
451
+ Layout/InitialIndentation:
452
+ Description: >-
453
+ Checks the indentation of the first non-blank non-comment line in a file.
454
+ Enabled: false
455
+
456
+ # Lint
457
+
458
+ Lint/AmbiguousOperator:
459
+ Description: >-
460
+ Checks for ambiguous operators in the first argument of a
461
+ method invocation without parentheses.
462
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
463
+ Enabled: false
464
+
465
+ Lint/AmbiguousRegexpLiteral:
466
+ Description: >-
467
+ Checks for ambiguous regexp literals in the first argument of
468
+ a method invocation without parenthesis.
469
+ Enabled: false
470
+
471
+ Lint/AssignmentInCondition:
472
+ Description: "Don't use assignment in conditions."
473
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
474
+ Enabled: false
475
+
476
+ Lint/CircularArgumentReference:
477
+ Description: "Don't refer to the keyword argument in the default value."
478
+ Enabled: false
479
+
480
+ Lint/DeprecatedClassMethods:
481
+ Description: 'Check for deprecated class method calls.'
482
+ Enabled: false
483
+
484
+ Lint/DuplicateHashKey:
485
+ Description: 'Check for duplicate keys in hash literals.'
486
+ Enabled: false
487
+
488
+ Lint/EachWithObjectArgument:
489
+ Description: 'Check for immutable argument given to each_with_object.'
490
+ Enabled: false
491
+
492
+ Lint/ElseLayout:
493
+ Description: 'Check for odd code arrangement in an else block.'
494
+ Enabled: false
495
+
496
+ Lint/FormatParameterMismatch:
497
+ Description: 'The number of parameters to format/sprint must match the fields.'
498
+ Enabled: false
499
+
500
+ Lint/SuppressedException:
501
+ Description: "Don't suppress exception."
502
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
503
+ Enabled: false
504
+
505
+ Lint/LiteralAsCondition:
506
+ Description: 'Checks of literals used in conditions.'
507
+ Enabled: false
508
+
509
+ Lint/LiteralInInterpolation:
510
+ Description: 'Checks for literals used in interpolation.'
511
+ Enabled: false
512
+
513
+ Lint/Loop:
514
+ Description: >-
515
+ Use Kernel#loop with break rather than begin/end/until or
516
+ begin/end/while for post-loop tests.
517
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
518
+ Enabled: false
519
+
520
+ Lint/NestedMethodDefinition:
521
+ Description: 'Do not use nested method definitions.'
522
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
523
+ Enabled: false
524
+
525
+ Lint/NonLocalExitFromIterator:
526
+ Description: 'Do not use return in iterator to cause non-local exit.'
527
+ Enabled: false
528
+
529
+ Lint/ParenthesesAsGroupedExpression:
530
+ Description: >-
531
+ Checks for method calls with a space before the opening
532
+ parenthesis.
533
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
534
+ Enabled: false
535
+
536
+ Lint/RequireParentheses:
537
+ Description: >-
538
+ Use parentheses in the method call to avoid confusion
539
+ about precedence.
540
+ Enabled: false
541
+
542
+ Lint/UnderscorePrefixedVariableName:
543
+ Description: 'Do not use prefix `_` for a variable that is used.'
544
+ Enabled: false
545
+
546
+ Lint/RedundantCopDisableDirective:
547
+ Description: >-
548
+ Checks for rubocop:disable comments that can be removed.
549
+ Note: this cop is not disabled when disabling all cops.
550
+ It must be explicitly disabled.
551
+ Enabled: false
552
+
553
+ Lint/Void:
554
+ Description: 'Possible use of operator/literal/variable in void context.'
555
+ Enabled: false
556
+
557
+ # Performance
558
+
559
+ Performance/CaseWhenSplat:
560
+ Description: >-
561
+ Place `when` conditions that use splat at the end
562
+ of the list of `when` branches.
563
+ Enabled: false
564
+
565
+ Performance/Count:
566
+ Description: >-
567
+ Use `count` instead of `select...size`, `reject...size`,
568
+ `select...count`, `reject...count`, `select...length`,
569
+ and `reject...length`.
570
+ Enabled: false
571
+
572
+ Performance/Detect:
573
+ Description: >-
574
+ Use `detect` instead of `select.first`, `find_all.first`,
575
+ `select.last`, and `find_all.last`.
576
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
577
+ Enabled: false
578
+
579
+ Performance/FlatMap:
580
+ Description: >-
581
+ Use `Enumerable#flat_map`
582
+ instead of `Enumerable#map...Array#flatten(1)`
583
+ or `Enumberable#collect..Array#flatten(1)`
584
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
585
+ Enabled: false
586
+
587
+ Performance/ReverseEach:
588
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
589
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
590
+ Enabled: false
591
+
592
+ Performance/Size:
593
+ Description: >-
594
+ Use `size` instead of `count` for counting
595
+ the number of elements in `Array` and `Hash`.
596
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
597
+ Enabled: false
598
+
599
+ Performance/StringReplacement:
600
+ Description: >-
601
+ Use `tr` instead of `gsub` when you are replacing the same
602
+ number of characters. Use `delete` instead of `gsub` when
603
+ you are deleting characters.
604
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
605
+ Enabled: false
606
+
607
+ # Rails
608
+
609
+ Rails/ActionFilter:
610
+ Description: 'Enforces consistent use of action filter methods.'
611
+ Enabled: false
612
+
613
+ Rails/Date:
614
+ Description: >-
615
+ Checks the correct usage of date aware methods,
616
+ such as Date.today, Date.current etc.
617
+ Enabled: false
618
+
619
+ Rails/FindBy:
620
+ Description: 'Prefer find_by over where.first.'
621
+ Enabled: false
622
+
623
+ Rails/FindEach:
624
+ Description: 'Prefer all.find_each over all.find.'
625
+ Enabled: false
626
+
627
+ Rails/HasAndBelongsToMany:
628
+ Description: 'Prefer has_many :through to has_and_belongs_to_many.'
629
+ Enabled: false
630
+
631
+ Rails/Output:
632
+ Description: 'Checks for calls to puts, print, etc.'
633
+ Enabled: false
634
+
635
+ Rails/ReadWriteAttribute:
636
+ Description: >-
637
+ Checks for read_attribute(:attr) and
638
+ write_attribute(:attr, val).
639
+ Enabled: false
640
+
641
+ Rails/ScopeArgs:
642
+ Description: 'Checks the arguments of ActiveRecord scopes.'
643
+ Enabled: false
644
+
645
+ Rails/TimeZone:
646
+ Description: 'Checks the correct usage of time zone aware methods.'
647
+ StyleGuide: 'https://github.com/bbatsov/rails-style-guide#time'
648
+ Reference: 'http://danilenko.org/2012/7/6/rails_timezones'
649
+ Enabled: false
650
+
651
+ Rails/Validation:
652
+ Description: 'Use validates :attribute, hash of validations.'
653
+ Enabled: false