chewie 0.2.1

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