word_2_quiz 1.0.0

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