danger-warnings_next_generation 0.0.1

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