gem-ttags 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.rubocop.yml ADDED
@@ -0,0 +1,1751 @@
1
+ require:
2
+ - rubocop-minitest
3
+ - rubocop-performance
4
+ - rubocop-rails
5
+ AllCops:
6
+ NewCops: enable
7
+ Exclude:
8
+ - vendor/**/*
9
+ - Gemfile.lock
10
+ - db/schema.rb
11
+ - node_modules/**/*
12
+ - tmp/**/*
13
+ - test/dummy/db/schema.rb
14
+ - gemfiles/**/*
15
+ - bin/**/*
16
+ TargetRubyVersion: 2.7
17
+
18
+ # Department Bundler
19
+ Bundler/DuplicatedGem:
20
+ Description: Checks for duplicate gem entries in Gemfile.
21
+ Enabled: true
22
+
23
+ Bundler/InsecureProtocolSource:
24
+ Description: The source `:gemcutter`, `:rubygems` and `:rubyforge` are deprecated because HTTP requests are insecure. Please change your source to 'https://rubygems.org' if possible, or 'http://rubygems.org' if not.
25
+ Enabled: true
26
+
27
+ Bundler/OrderedGems:
28
+ Description: Gems within groups in the Gemfile should be alphabetically sorted.
29
+ Enabled: true
30
+
31
+ # Department Gemspec
32
+ Gemspec/OrderedDependencies:
33
+ Description: Dependencies in the gemspec should be alphabetically sorted.
34
+ Enabled: true
35
+
36
+ # Department Layout
37
+ Layout/AccessModifierIndentation:
38
+ Description: Check indentation of private/protected visibility modifiers.
39
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-public-private-protected
40
+ Enabled: false
41
+
42
+ Layout/ArrayAlignment:
43
+ Description: Align the elements of an array literal if they span more than one line.
44
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#align-multiline-arrays
45
+ Enabled: true
46
+
47
+ Layout/HashAlignment:
48
+ Description: Align the elements of a hash literal if they span more than one line.
49
+ Enabled: true
50
+
51
+ Layout/ParameterAlignment:
52
+ Description: Align the parameters of a method call if they span more than one line.
53
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-double-indent
54
+ Enabled: true
55
+
56
+ Layout/BlockEndNewline:
57
+ Description: Put end statement of multiline block on its own line.
58
+ Enabled: true
59
+
60
+ Layout/CaseIndentation:
61
+ Description: Indentation of when in a case/when/[else/]end.
62
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
63
+ Enabled: true
64
+
65
+ Layout/ClosingParenthesisIndentation:
66
+ Description: Checks the indentation of hanging closing parentheses.
67
+ Enabled: false
68
+
69
+ Layout/CommentIndentation:
70
+ Description: Indentation of comments.
71
+ Enabled: false
72
+
73
+ Layout/DotPosition:
74
+ Description: Checks the position of the dot in multi-line method calls.
75
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
76
+ Enabled: true
77
+ EnforcedStyle: trailing
78
+
79
+ Layout/ElseAlignment:
80
+ Description: Align elses and elsifs correctly.
81
+ Enabled: true
82
+
83
+ Layout/EmptyLineBetweenDefs:
84
+ Description: Use empty lines between defs.
85
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-between-methods
86
+ Enabled: true
87
+
88
+ Layout/EmptyLines:
89
+ Description: Don't use several empty lines in a row.
90
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#two-or-more-empty-lines
91
+ Enabled: true
92
+
93
+ Layout/EmptyLinesAroundAccessModifier:
94
+ Description: Keep blank lines around access modifiers.
95
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-access-modifier
96
+ Enabled: false
97
+
98
+ Layout/EmptyLinesAroundBeginBody:
99
+ Description: Keeps track of empty lines around begin-end bodies.
100
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
101
+ Enabled: false
102
+
103
+ Layout/EmptyLinesAroundBlockBody:
104
+ Description: Keeps track of empty lines around block bodies.
105
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
106
+ Enabled: false
107
+
108
+ Layout/EmptyLinesAroundClassBody:
109
+ Description: Keeps track of empty lines around class bodies.
110
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
111
+ Enabled: false
112
+
113
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
114
+ Description: Keeps track of empty lines around exception handling keywords.
115
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
116
+ Enabled: false
117
+
118
+ Layout/EmptyLinesAroundModuleBody:
119
+ Description: Keeps track of empty lines around module bodies.
120
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
121
+ Enabled: false
122
+
123
+ Layout/EmptyLinesAroundMethodBody:
124
+ Description: Keeps track of empty lines around method bodies.
125
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#empty-lines-around-bodies
126
+ Enabled: false
127
+
128
+ Layout/EndOfLine:
129
+ Description: Use Unix-style line endings.
130
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#crlf
131
+ Enabled: false
132
+
133
+ Layout/ExtraSpacing:
134
+ Description: Do not use unnecessary spacing.
135
+ Enabled: true
136
+
137
+ Layout/FirstArrayElementLineBreak:
138
+ Description: Checks for a line break before the first element in a multi-line array.
139
+ Enabled: false
140
+
141
+ Layout/FirstHashElementLineBreak:
142
+ Description: Checks for a line break before the first element in a multi-line hash.
143
+ Enabled: false
144
+
145
+ Layout/FirstMethodArgumentLineBreak:
146
+ Description: Checks for a line break before the first argument in a multi-line method call.
147
+ Enabled: false
148
+
149
+ Layout/FirstMethodParameterLineBreak:
150
+ Description: Checks for a line break before the first parameter in a multi-line method parameter definition.
151
+ Enabled: false
152
+
153
+ Layout/InitialIndentation:
154
+ Description: Checks the indentation of the first non-blank non-comment line in a file.
155
+ Enabled: false
156
+
157
+ Layout/FirstArgumentIndentation:
158
+ Description: Checks the indentation of the first parameter in a method call.
159
+ Enabled: false
160
+
161
+ Layout/IndentationConsistency:
162
+ Description: Keep indentation straight.
163
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
164
+ Enabled: false
165
+
166
+ Layout/IndentationWidth:
167
+ Description: Use 2 spaces for indentation.
168
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
169
+ Enabled: true
170
+
171
+ Layout/FirstArrayElementIndentation:
172
+ Description: Checks the indentation of the first element in an array literal.
173
+ Enabled: false
174
+
175
+ Layout/AssignmentIndentation:
176
+ Description: Checks the indentation of the first line of the right-hand-side of a multi-line assignment.
177
+ Enabled: true
178
+
179
+ Layout/FirstHashElementIndentation:
180
+ Description: Checks the indentation of the first key in a hash literal.
181
+ Enabled: false
182
+
183
+ Layout/HeredocIndentation:
184
+ Description: This cops checks the indentation of the here document bodies.
185
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#squiggly-heredocs
186
+ Enabled: true
187
+
188
+ Layout/SpaceInLambdaLiteral:
189
+ Description: Checks for spaces in lambda literals.
190
+ Enabled: true
191
+
192
+ Layout/LeadingCommentSpace:
193
+ Description: Comments should start with a space.
194
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-space
195
+ Enabled: true
196
+
197
+ Layout/MultilineArrayBraceLayout:
198
+ Description: Checks that the closing brace in an array literal is either on the same line as the last array element, or a new line.
199
+ Enabled: true
200
+
201
+ Layout/MultilineAssignmentLayout:
202
+ Description: Check for a newline after the assignment operator in multi-line assignments.
203
+ StyleGuide: https://github.com/bbatsov/ruby-style-guid#indent-conditional-assignment
204
+ Enabled: false
205
+
206
+ Layout/MultilineBlockLayout:
207
+ Description: Ensures newlines after multiline block do statements.
208
+ Enabled: true
209
+
210
+ Layout/MultilineHashBraceLayout:
211
+ Description: Checks that the closing brace in a hash literal is either on the same line as the last hash element, or a new line.
212
+ Enabled: true
213
+
214
+ Layout/MultilineMethodCallBraceLayout:
215
+ Description: Checks that the closing brace in a method call is either on the same line as the last method argument, or a new line.
216
+ Enabled: true
217
+
218
+ Layout/MultilineMethodCallIndentation:
219
+ Description: Checks indentation of method calls with the dot operator that span more than one line.
220
+ Enabled: true
221
+
222
+ Layout/MultilineMethodDefinitionBraceLayout:
223
+ Description: Checks that the closing brace in a method definition is either on the same line as the last method parameter, or a new line.
224
+ Enabled: true
225
+
226
+ Layout/MultilineOperationIndentation:
227
+ Description: Checks indentation of binary operations that span more than one line.
228
+ Enabled: false
229
+
230
+ Layout/EmptyLineAfterMagicComment:
231
+ Description: Add an empty line after magic comments to separate them from code.
232
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#separate-magic-comments-from-code
233
+ Enabled: true
234
+
235
+ Layout/RescueEnsureAlignment:
236
+ Description: Align rescues and ensures correctly.
237
+ Enabled: false
238
+
239
+ Layout/SpaceBeforeFirstArg:
240
+ Description: Checks that exactly one space is used between a method name and the first argument for method calls without parentheses.
241
+ Enabled: true
242
+
243
+ Layout/SpaceAfterColon:
244
+ Description: Use spaces after colons.
245
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
246
+ Enabled: true
247
+
248
+ Layout/SpaceAfterComma:
249
+ Description: Use spaces after commas.
250
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
251
+ Enabled: true
252
+
253
+ Layout/SpaceAfterMethodName:
254
+ Description: Do not put a space between a method name and the opening parenthesis in a method definition.
255
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
256
+ Enabled: true
257
+
258
+ Layout/SpaceAfterNot:
259
+ Description: Tracks redundant space after the ! operator.
260
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-bang
261
+ Enabled: false
262
+
263
+ Layout/SpaceAfterSemicolon:
264
+ Description: Use spaces after semicolons.
265
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
266
+ Enabled: true
267
+
268
+ Layout/SpaceBeforeBlockBraces:
269
+ Description: Checks that the left block brace has or doesn't have space before it.
270
+ Enabled: false
271
+
272
+ Layout/SpaceBeforeComma:
273
+ Description: No spaces before commas.
274
+ Enabled: false
275
+
276
+ Layout/SpaceBeforeComment:
277
+ Description: Checks for missing space between code and a comment on the same line.
278
+ Enabled: false
279
+
280
+ Layout/SpaceBeforeSemicolon:
281
+ Description: No spaces before semicolons.
282
+ Enabled: false
283
+
284
+ Layout/SpaceInsideBlockBraces:
285
+ Description: Checks that block braces have or don't have surrounding space. For blocks taking parameters, checks that the left brace has or doesn't have trailing space.
286
+ Enabled: false
287
+
288
+ Layout/SpaceAroundBlockParameters:
289
+ Description: Checks the spacing inside and after block parameters pipes.
290
+ Enabled: true
291
+
292
+ Layout/SpaceAroundEqualsInParameterDefault:
293
+ Description: Checks that the equals signs in parameter default assignments have or don't have surrounding space depending on configuration.
294
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-around-equals
295
+ Enabled: true
296
+
297
+ Layout/SpaceAroundKeyword:
298
+ Description: Use a space around keywords if appropriate.
299
+ Enabled: true
300
+
301
+ Layout/SpaceAroundOperators:
302
+ Description: Use a single space around operators.
303
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
304
+ Enabled: true
305
+
306
+ Layout/SpaceInsideArrayPercentLiteral:
307
+ Description: No unnecessary additional spaces between elements in %i/%w literals.
308
+ Enabled: true
309
+
310
+ Layout/SpaceInsidePercentLiteralDelimiters:
311
+ Description: No unnecessary spaces inside delimiters of %i/%w/%x literals.
312
+ Enabled: true
313
+
314
+ Layout/SpaceInsideHashLiteralBraces:
315
+ Description: Use spaces inside hash literal braces - or don't.
316
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-operators
317
+ Enabled: true
318
+
319
+ Layout/SpaceInsideParens:
320
+ Description: No spaces after ( or before ).
321
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-spaces-braces
322
+ Enabled: true
323
+
324
+ Layout/SpaceInsideRangeLiteral:
325
+ Description: No spaces inside range literals.
326
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-space-inside-range-literals
327
+ Enabled: true
328
+
329
+ Layout/SpaceInsideStringInterpolation:
330
+ Description: Checks for padding/surrounding spaces inside string interpolation.
331
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#string-interpolation
332
+ Enabled: false
333
+
334
+ Layout/IndentationStyle:
335
+ Description: No hard tabs.
336
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
337
+ Enabled: false
338
+
339
+ Layout/SpaceAroundMethodCallOperator:
340
+ Enabled: true
341
+
342
+ Layout/TrailingEmptyLines:
343
+ Description: Checks trailing blank lines and final newline.
344
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#newline-eof
345
+ Enabled: false
346
+
347
+ Layout/TrailingWhitespace:
348
+ Description: Avoid trailing whitespace.
349
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-whitespace
350
+ Enabled: false
351
+
352
+ # Department Lint
353
+ Lint/AmbiguousBlockAssociation:
354
+ Description: Checks for ambiguous block association with method when param passed without parentheses.
355
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#syntax
356
+ Enabled: false
357
+
358
+ Lint/AmbiguousOperator:
359
+ Description: Checks for ambiguous operators in the first argument of a method invocation without parentheses.
360
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-invocation-parens
361
+ Enabled: true
362
+
363
+ Lint/AmbiguousRegexpLiteral:
364
+ Description: Checks for ambiguous regexp literals in the first argument of a method invocation without parentheses.
365
+ Enabled: true
366
+
367
+ Lint/AssignmentInCondition:
368
+ Description: Don't use assignment in conditions.
369
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
370
+ Enabled: true
371
+
372
+ Layout/BlockAlignment:
373
+ Description: Align block ends correctly.
374
+ Enabled: true
375
+
376
+ Lint/BooleanSymbol:
377
+ Description: Check for `:true` and `:false` symbols.
378
+ Enabled: true
379
+
380
+ Lint/CircularArgumentReference:
381
+ Description: Default values in optional keyword arguments and optional ordinal arguments should not refer back to the name of the argument.
382
+ Enabled: true
383
+
384
+ Layout/ConditionPosition:
385
+ Description: Checks for condition placed in a confusing position relative to the keyword.
386
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#same-line-condition
387
+ Enabled: true
388
+
389
+ Lint/Debugger:
390
+ Description: Check for debugger calls.
391
+ Enabled: true
392
+
393
+ Layout/DefEndAlignment:
394
+ Description: Align ends corresponding to defs correctly.
395
+ Enabled: true
396
+
397
+ Lint/DeprecatedClassMethods:
398
+ Description: Check for deprecated class method calls.
399
+ Enabled: true
400
+
401
+ Lint/DuplicateCaseCondition:
402
+ Description: Do not repeat values in case conditionals.
403
+ Enabled: true
404
+
405
+ Lint/DuplicateMethods:
406
+ Description: Check for duplicate method definitions.
407
+ Enabled: true
408
+
409
+ Lint/DuplicateHashKey:
410
+ Description: Check for duplicate keys in hash literals.
411
+ Enabled: true
412
+
413
+ Lint/EachWithObjectArgument:
414
+ Description: Check for immutable argument given to each_with_object.
415
+ Enabled: true
416
+
417
+ Lint/ElseLayout:
418
+ Description: Check for odd code arrangement in an else block.
419
+ Enabled: true
420
+
421
+ Lint/EmptyEnsure:
422
+ Description: Checks for empty ensure block.
423
+ Enabled: true
424
+ AutoCorrect: false
425
+
426
+ Lint/EmptyExpression:
427
+ Description: Checks for empty expressions.
428
+ Enabled: true
429
+
430
+ Lint/EmptyInterpolation:
431
+ Description: Checks for empty string interpolation.
432
+ Enabled: true
433
+
434
+ Lint/EmptyWhen:
435
+ Description: Checks for `when` branches with empty bodies.
436
+ Enabled: true
437
+
438
+ Layout/EndAlignment:
439
+ Description: Align ends correctly.
440
+ Enabled: true
441
+
442
+ Lint/EnsureReturn:
443
+ Description: Do not use return in an ensure block.
444
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
445
+ Enabled: true
446
+
447
+ Lint/FloatOutOfRange:
448
+ Description: Catches floating-point literals too large or small for Ruby to represent.
449
+ Enabled: true
450
+
451
+ Lint/FormatParameterMismatch:
452
+ Description: The number of parameters to format/sprint must match the fields.
453
+ Enabled: true
454
+
455
+ Lint/SuppressedException:
456
+ Description: Don't suppress exception.
457
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
458
+ Enabled: true
459
+
460
+ Lint/ImplicitStringConcatenation:
461
+ Description: Checks for adjacent string literals on the same line, which could better be represented as a single string literal.
462
+ Enabled: true
463
+
464
+ Lint/IneffectiveAccessModifier:
465
+ Description: Checks for attempts to use `private` or `protected` to set the visibility of a class method, which does not work.
466
+ Enabled: true
467
+
468
+ Lint/InheritException:
469
+ Description: Avoid inheriting from the `Exception` class.
470
+ Enabled: true
471
+
472
+ Lint/InterpolationCheck:
473
+ Description: Raise warning for interpolation in single q strs
474
+ Enabled: true
475
+
476
+ Lint/LiteralAsCondition:
477
+ Description: Checks of literals used in conditions.
478
+ Enabled: true
479
+
480
+ Lint/LiteralInInterpolation:
481
+ Description: Checks for literals used in interpolation.
482
+ Enabled: true
483
+
484
+ Lint/Loop:
485
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while for post-loop tests.
486
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#loop-with-break
487
+ Enabled: true
488
+
489
+ Lint/MultipleComparison:
490
+ Description: Use `&&` operator to compare multiple value.
491
+ Enabled: true
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: true
497
+
498
+ Lint/NextWithoutAccumulator:
499
+ Description: Do not omit the accumulator when calling `next` in a `reduce`/`inject` block.
500
+ Enabled: true
501
+
502
+ Lint/NonLocalExitFromIterator:
503
+ Description: Do not use return in iterator to cause non-local exit.
504
+ Enabled: true
505
+
506
+ Lint/ParenthesesAsGroupedExpression:
507
+ Description: Checks for method calls with a space before the opening parenthesis.
508
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parens-no-spaces
509
+ Enabled: true
510
+
511
+ Lint/PercentStringArray:
512
+ Description: Checks for unwanted commas and quotes in %w/%W literals.
513
+ Enabled: true
514
+
515
+ Lint/PercentSymbolArray:
516
+ Description: Checks for unwanted commas and colons in %i/%I literals.
517
+ Enabled: true
518
+
519
+ Lint/RandOne:
520
+ Description: Checks for `rand(1)` calls. Such calls always return `0` and most likely a mistake.
521
+ Enabled: true
522
+
523
+ Lint/RedundantWithIndex:
524
+ Description: Checks for redundant `with_index`.
525
+ Enabled: true
526
+
527
+ Lint/RedundantWithObject:
528
+ Description: Checks for redundant `with_object`.
529
+ Enabled: true
530
+
531
+ Lint/RegexpAsCondition:
532
+ Description: Do not use regexp literal as a condition. The regexp literal matches `$_` implicitly.
533
+ Enabled: true
534
+
535
+ Lint/RequireParentheses:
536
+ Description: Use parentheses in the method call to avoid confusion about precedence.
537
+ Enabled: true
538
+
539
+ Lint/RescueException:
540
+ Description: Avoid rescuing the Exception class.
541
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-blind-rescues
542
+ Enabled: true
543
+
544
+ Lint/RescueType:
545
+ Description: Avoid rescuing from non constants that could result in a `TypeError`.
546
+ Enabled: true
547
+
548
+ Lint/SafeNavigationChain:
549
+ Description: Do not chain ordinary method call after safe navigation operator.
550
+ Enabled: true
551
+
552
+ Lint/ScriptPermission:
553
+ Description: Grant script file execute permission.
554
+ Enabled: true
555
+
556
+ Lint/ShadowedException:
557
+ Description: Avoid rescuing a higher level exception before a lower level exception.
558
+ Enabled: true
559
+
560
+ Lint/ShadowingOuterLocalVariable:
561
+ Description: Do not use the same name as outer local variable for block arguments or block local variables.
562
+ Enabled: true
563
+
564
+ Lint/RedundantStringCoercion:
565
+ Description: Checks for Object#to_s usage in string interpolation.
566
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
567
+ Enabled: true
568
+
569
+ Lint/UnderscorePrefixedVariableName:
570
+ Description: Do not use prefix `_` for a variable that is used.
571
+ Enabled: true
572
+
573
+ Lint/UnifiedInteger:
574
+ Description: Use Integer instead of Fixnum or Bignum
575
+ Enabled: true
576
+
577
+ Lint/RedundantRequireStatement:
578
+ Description: Checks for unnecessary `require` statement.
579
+ Enabled: true
580
+
581
+ Lint/RedundantSplatExpansion:
582
+ Description: Checks for splat unnecessarily being called on literals
583
+ Enabled: true
584
+
585
+ Lint/UnusedBlockArgument:
586
+ Description: Checks for unused block arguments.
587
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
588
+ Enabled: true
589
+
590
+ Lint/UnusedMethodArgument:
591
+ Description: Checks for unused method arguments.
592
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
593
+ Enabled: true
594
+
595
+ Lint/UnreachableCode:
596
+ Description: Unreachable code.
597
+ Enabled: true
598
+
599
+ Lint/UriEscapeUnescape:
600
+ Description: '`URI.escape` method is obsolete and should not be used. Instead, use `CGI.escape`, `URI.encode_www_form` or `URI.encode_www_form_component` depending on your specific use case. Also `URI.unescape` method is obsolete and should not be used. Instead, use `CGI.unescape`, `URI.decode_www_form` or `URI.decode_www_form_component` depending on your specific use case.'
601
+ Enabled: true
602
+
603
+ Lint/UriRegexp:
604
+ Description: Use `URI::DEFAULT_PARSER.make_regexp` instead of `URI.regexp`.
605
+ Enabled: true
606
+
607
+ Lint/UselessAccessModifier:
608
+ Description: Checks for useless access modifiers.
609
+ Enabled: true
610
+ ContextCreatingMethods: []
611
+ MethodCreatingMethods: []
612
+
613
+ Lint/UselessAssignment:
614
+ Description: Checks for useless assignment to a local variable.
615
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
616
+ Enabled: true
617
+
618
+ Lint/BinaryOperatorWithIdenticalOperands:
619
+ Description: Checks for comparison of something with itself.
620
+ Enabled: true
621
+
622
+ Lint/ReturnInVoidContext:
623
+ Description: Checks for return in void context.
624
+ Enabled: true
625
+
626
+ Lint/UselessSetterCall:
627
+ Description: Checks for useless setter call to a local variable.
628
+ Enabled: true
629
+
630
+ Lint/Void:
631
+ Description: Possible use of operator/literal/variable in void context.
632
+ Enabled: true
633
+
634
+ # Department Metrics
635
+ Metrics/AbcSize:
636
+ Description: A calculated magnitude based on number of assignments, branches, and conditions.
637
+ Reference: http://c2.com/cgi/wiki?AbcMetric
638
+ Enabled: true
639
+ Max: 15
640
+
641
+ Metrics/BlockLength:
642
+ Description: Avoid long blocks with many lines.
643
+ Enabled: true
644
+ Exclude:
645
+ - Rakefile
646
+ - "**/*.rake"
647
+ - spec/**/*.rb
648
+ - 'config/environments/*.rb'
649
+ - 'config/routes.rb'
650
+ - 'config/initializers/msgpack.rb'
651
+
652
+ Metrics/BlockNesting:
653
+ Description: Avoid excessive block nesting
654
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count
655
+ Enabled: true
656
+ Max: 4
657
+
658
+ Metrics/ClassLength:
659
+ Description: Avoid classes longer than 100 lines of code.
660
+ Enabled: true
661
+ Max: 100
662
+ Exclude:
663
+ - "test/models/account_test.rb"
664
+
665
+ Metrics/CyclomaticComplexity:
666
+ Description: A complexity metric that is strongly correlated to the number of test cases needed to validate a method.
667
+ Enabled: true
668
+
669
+ Layout/LineLength:
670
+ Description: Limit lines to 80 characters.
671
+ StyleGuide: '#80-character-limits'
672
+ Enabled: true
673
+ Max: 80
674
+ Exclude:
675
+ - 'db/**/*'
676
+ - 'config/initializers/**/*'
677
+ - 'config/environments/**/*'
678
+
679
+ Metrics/MethodLength:
680
+ Description: Avoid methods longer than 10 lines of code.
681
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
682
+ Enabled: true
683
+ Max: 6
684
+ Exclude:
685
+ - 'db/**/*'
686
+
687
+ Metrics/ModuleLength:
688
+ Description: Avoid modules longer than 100 lines of code.
689
+ Enabled: true
690
+ Max: 100
691
+
692
+ Metrics/ParameterLists:
693
+ Description: Avoid parameter lists longer than three or four parameters.
694
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
695
+ Enabled: false
696
+
697
+ Metrics/PerceivedComplexity:
698
+ Description: A complexity metric geared towards measuring complexity for a human reader.
699
+ Enabled: true
700
+
701
+ # Department Naming
702
+ Naming/AccessorMethodName:
703
+ Description: Check the naming of accessor methods for get_/set_.
704
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#accessor_mutator_method_names
705
+ Enabled: false
706
+
707
+ Naming/AsciiIdentifiers:
708
+ Description: Use only ascii symbols in identifiers.
709
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-identifiers
710
+ Enabled: false
711
+
712
+ Naming/ClassAndModuleCamelCase:
713
+ Description: Use CamelCase for classes and modules.
714
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#camelcase-classes
715
+ Enabled: true
716
+
717
+ Naming/ConstantName:
718
+ Description: Constants should use SCREAMING_SNAKE_CASE.
719
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#screaming-snake-case
720
+ Enabled: true
721
+
722
+ Naming/FileName:
723
+ Description: Use snake_case for source file names.
724
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
725
+ Enabled: true
726
+
727
+ Naming/HeredocDelimiterCase:
728
+ Description: Use configured case for heredoc delimiters.
729
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#heredoc-delimiters
730
+ Enabled: true
731
+
732
+ Naming/HeredocDelimiterNaming:
733
+ Description: Use descriptive heredoc delimiters.
734
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#heredoc-delimiters
735
+ Enabled: true
736
+
737
+ Naming/MethodName:
738
+ Description: Use the configured style when naming methods.
739
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
740
+ Enabled: false
741
+
742
+ Naming/PredicateName:
743
+ Description: Check the names of predicate methods.
744
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
745
+ Enabled: true
746
+
747
+ Naming/BinaryOperatorParameterName:
748
+ Description: When defining binary operators, name the argument other.
749
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
750
+ Enabled: true
751
+
752
+ Naming/VariableName:
753
+ Description: Use the configured style when naming variables.
754
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-symbols-methods-vars
755
+ Enabled: true
756
+
757
+ Naming/VariableNumber:
758
+ Description: Use the configured style when numbering variables.
759
+ Enabled: false
760
+
761
+ Naming/MemoizedInstanceVariableName:
762
+ Enabled: true
763
+ Exclude:
764
+ - app/controllers/*.rb
765
+ # Department Performance
766
+ Performance/Caller:
767
+ Description: Use `caller(n..n)` instead of `caller`.
768
+ Enabled: true
769
+
770
+ Performance/Casecmp:
771
+ Description: Use `casecmp` rather than `downcase ==`, `upcase ==`, `== downcase`, or `== upcase`..
772
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringcasecmp-vs-stringdowncase---code
773
+ Enabled: true
774
+
775
+ Performance/CaseWhenSplat:
776
+ Description: Place `when` conditions that use splat at the end of the list of `when` branches.
777
+ Enabled: true
778
+
779
+ Performance/Count:
780
+ Description: Use `count` instead of `select...size`, `reject...size`, `select...count`, `reject...count`, `select...length`, and `reject...length`.
781
+ SafeAutoCorrect: true
782
+ Enabled: true
783
+
784
+ Performance/Detect:
785
+ Description: Use `detect` instead of `select.first`, `find_all.first`, `select.last`, and `find_all.last`.
786
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
787
+ SafeAutoCorrect: true
788
+ Enabled: true
789
+
790
+ Performance/DoubleStartEndWith:
791
+ Description: Use `str.{start,end}_with?(x, ..., y, ...)` instead of `str.{start,end}_with?(x, ...) || str.{start,end}_with?(y, ...)`.
792
+ Enabled: true
793
+
794
+ Performance/EndWith:
795
+ Description: Use `end_with?` instead of a regex match anchored to the end of a string.
796
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringmatch-vs-stringstart_withstringend_with-code-start-code-end
797
+ AutoCorrect: false
798
+ Enabled: true
799
+
800
+ Performance/FixedSize:
801
+ Description: Do not compute the size of statically sized objects except in constants
802
+ Enabled: true
803
+
804
+ Performance/FlatMap:
805
+ Description: Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1)` or `Enumberable#collect..Array#flatten(1)`
806
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code
807
+ Enabled: true
808
+ EnabledForFlattenWithoutParams: false
809
+
810
+ Performance/RangeInclude:
811
+ Description: Use `Range#cover?` instead of `Range#include?`.
812
+ Reference: https://github.com/JuanitoFatas/fast-ruby#cover-vs-include-code
813
+ Enabled: true
814
+
815
+ Performance/RedundantBlockCall:
816
+ Description: Use `yield` instead of `block.call`.
817
+ Reference: https://github.com/JuanitoFatas/fast-ruby#proccall-vs-yield-code
818
+ Enabled: true
819
+
820
+ Performance/RedundantMatch:
821
+ Description: Use `=~` instead of `String#match` or `Regexp#match` in a context where the returned `MatchData` is not needed.
822
+ Enabled: true
823
+
824
+ Performance/RedundantMerge:
825
+ Description: Use Hash#[]=, rather than Hash#merge! with a single key-value pair.
826
+ Reference: https://github.com/JuanitoFatas/fast-ruby#hashmerge-vs-hash-code
827
+ Enabled: true
828
+
829
+ Style/ExponentialNotation:
830
+ Enabled: true
831
+
832
+ Style/RedundantSortBy:
833
+ Description: Use `sort` instead of `sort_by { |x| x }`.
834
+ Enabled: true
835
+
836
+ Performance/RegexpMatch:
837
+ Description: Use `match?` instead of `Regexp#match`, `String#match`, `Symbol#match`, `Regexp#===`, or `=~` when `MatchData` is not used.
838
+ Enabled: true
839
+
840
+ Performance/ReverseEach:
841
+ Description: Use `reverse_each` instead of `reverse.each`.
842
+ Reference: https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code
843
+ Enabled: true
844
+
845
+ Style/Sample:
846
+ Description: Use `sample` instead of `shuffle.first`, `shuffle.last`, and `shuffle[Integer]`.
847
+ Reference: https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code
848
+ Enabled: true
849
+
850
+ Performance/Size:
851
+ Description: Use `size` instead of `count` for counting the number of elements in `Array` and `Hash`.
852
+ Reference: https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code
853
+ Enabled: true
854
+
855
+ Performance/CompareWithBlock:
856
+ Description: Use `sort_by(&:foo)` instead of `sort { |a, b| a.foo <=> b.foo }`.
857
+ Enabled: true
858
+
859
+ Performance/StartWith:
860
+ Description: Use `start_with?` instead of a regex match anchored to the beginning of a string.
861
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringmatch-vs-stringstart_withstringend_with-code-start-code-end
862
+ AutoCorrect: false
863
+ Enabled: true
864
+
865
+ Performance/StringReplacement:
866
+ Description: Use `tr` instead of `gsub` when you are replacing the same number of characters. Use `delete` instead of `gsub` when you are deleting characters.
867
+ Reference: https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code
868
+ Enabled: true
869
+
870
+ Performance/TimesMap:
871
+ Description: Checks for .times.map calls.
872
+ AutoCorrect: false
873
+ Enabled: true
874
+
875
+ Performance/UnfreezeString:
876
+ Description: Use unary plus to get an unfrozen string literal.
877
+ Enabled: true
878
+
879
+ Performance/UriDefaultParser:
880
+ Description: Use `URI::DEFAULT_PARSER` instead of `URI::Parser.new`.
881
+ Enabled: true
882
+
883
+ # Department Security
884
+ Security/Eval:
885
+ Description: The use of eval represents a serious security risk.
886
+ Enabled: true
887
+
888
+ Security/JSONLoad:
889
+ Description: Prefer usage of `JSON.parse` over `JSON.load` due to potential security issues. See reference for more information.
890
+ Reference: http://ruby-doc.org/stdlib-2.3.0/libdoc/json/rdoc/JSON.html#method-i-load
891
+ Enabled: true
892
+ AutoCorrect: false
893
+
894
+ Security/MarshalLoad:
895
+ Description: Avoid using of `Marshal.load` or `Marshal.restore` due to potential security issues. See reference for more information.
896
+ Reference: http://ruby-doc.org/core-2.3.3/Marshal.html#module-Marshal-label-Security+considerations
897
+ Enabled: true
898
+
899
+ Security/YAMLLoad:
900
+ Description: Prefer usage of `YAML.safe_load` over `YAML.load` due to potential security issues. See reference for more information.
901
+ Reference: https://ruby-doc.org/stdlib-2.3.3/libdoc/yaml/rdoc/YAML.html#module-YAML-label-Security
902
+ Enabled: true
903
+
904
+ Security/Open:
905
+ Exclude:
906
+ - db/migrate/*.rb
907
+ # Department Style
908
+ Style/Alias:
909
+ Description: Use alias instead of alias_method.
910
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
911
+ Enabled: false
912
+
913
+ Style/AndOr:
914
+ Description: Use &&/|| instead of and/or.
915
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-and-or-or
916
+ Enabled: true
917
+
918
+ Style/ArrayJoin:
919
+ Description: Use Array#join instead of Array#*.
920
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#array-join'
921
+ Enabled: false
922
+
923
+ Style/AsciiComments:
924
+ Description: Use only ascii symbols in comments.
925
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#english-comments
926
+ Enabled: false
927
+
928
+ Style/Attr:
929
+ Description: Checks for uses of Module#attr.
930
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr
931
+ Enabled: true
932
+
933
+ Style/AutoResourceCleanup:
934
+ Description: Suggests the usage of an auto resource cleanup version of a method (if available).
935
+ Enabled: false
936
+
937
+ Style/BeginBlock:
938
+ Description: Avoid the use of BEGIN blocks.
939
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-BEGIN-blocks
940
+ Enabled: true
941
+
942
+ Style/BarePercentLiterals:
943
+ Description: Checks if usage of %() or %Q() matches configuration.
944
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q-shorthand
945
+ Enabled: true
946
+
947
+ Style/BlockComments:
948
+ Description: Do not use block comments.
949
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-block-comments
950
+ Enabled: false
951
+
952
+ Style/BlockDelimiters:
953
+ Description: Avoid using {...} for multi-line blocks (multiline chaining is always ugly). Prefer {...} over do...end for single-line blocks.
954
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
955
+ Enabled: true
956
+
957
+ Style/CaseEquality:
958
+ Description: Avoid explicit use of the case equality operator(===).
959
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-case-equality
960
+ Enabled: false
961
+
962
+ Style/CharacterLiteral:
963
+ Description: Checks for uses of character literals.
964
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-character-literals
965
+ Enabled: false
966
+
967
+ Style/ClassAndModuleChildren:
968
+ Description: Checks style of children classes and modules.
969
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#namespace-definition
970
+ Enabled: false
971
+
972
+ Style/ClassCheck:
973
+ Description: Enforces consistent use of `Object#is_a?` or `Object#kind_of?`.
974
+ Enabled: true
975
+
976
+ Style/ClassMethods:
977
+ Description: Use self when defining module/class methods.
978
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#def-self-class-methods
979
+ Enabled: false
980
+
981
+ Style/ClassVars:
982
+ Description: Avoid the use of class variables.
983
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-class-vars
984
+ Enabled: false
985
+
986
+ Style/CollectionMethods:
987
+ Description: Preferred collection methods.
988
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#map-find-select-reduce-size
989
+ Enabled: false
990
+
991
+ Style/ColonMethodCall:
992
+ Description: 'Do not use :: for method call.'
993
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-colons
994
+ Enabled: true
995
+
996
+ Style/CommandLiteral:
997
+ Description: Use `` or %x around command literals.
998
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-x
999
+ Enabled: false
1000
+
1001
+ Style/CommentAnnotation:
1002
+ Description: Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
1003
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#annotate-keywords
1004
+ Enabled: false
1005
+
1006
+ Style/CommentedKeyword:
1007
+ Description: Do not place comments on the same line as certain keywords.
1008
+ Enabled: false
1009
+
1010
+ Style/ConditionalAssignment:
1011
+ Description: Use the return value of `if` and `case` statements for assignment to a variable and variable comparison instead of assigning that variable inside of each branch.
1012
+ Enabled: true
1013
+
1014
+ Style/Copyright:
1015
+ Description: Include a copyright notice in each file before any code.
1016
+ Enabled: false
1017
+
1018
+ Style/DateTime:
1019
+ Description: Use Date or Time over DateTime.
1020
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#date--time
1021
+ Enabled: false
1022
+
1023
+ Style/DefWithParentheses:
1024
+ Description: Use def with parentheses when there are arguments.
1025
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
1026
+ Enabled: true
1027
+
1028
+ Style/Dir:
1029
+ Description: Use the `__dir__` method to retrieve the canonicalized absolute path to the current file.
1030
+ Enabled: true
1031
+
1032
+ Style/Documentation:
1033
+ Description: Document classes and non-namespace modules.
1034
+ Enabled: false
1035
+ Exclude:
1036
+ - 'spec/**/*'
1037
+ - 'test/**/*'
1038
+
1039
+ Style/DocumentationMethod:
1040
+ Description: Public methods.
1041
+ Enabled: false
1042
+ Exclude:
1043
+ - 'spec/**/*'
1044
+ - 'test/**/*'
1045
+
1046
+ Style/DoubleNegation:
1047
+ Description: Checks for uses of double negation (!!).
1048
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-bang-bang
1049
+ Enabled: true
1050
+
1051
+ Style/EachForSimpleLoop:
1052
+ Description: Use `Integer#times` for a simple loop which iterates a fixed number of times.
1053
+ Enabled: true
1054
+
1055
+ Style/EachWithObject:
1056
+ Description: Prefer `each_with_object` over `inject` or `reduce`.
1057
+ Enabled: false
1058
+
1059
+ Style/EmptyElse:
1060
+ Description: Avoid empty else-clauses.
1061
+ Enabled: true
1062
+
1063
+ Style/EmptyCaseCondition:
1064
+ Description: Avoid empty condition in case statements.
1065
+ Enabled: false
1066
+
1067
+ Style/EmptyLiteral:
1068
+ Description: Prefer literals to Array.new/Hash.new/String.new.
1069
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#literal-array-hash
1070
+ Enabled: false
1071
+
1072
+ Style/EmptyMethod:
1073
+ Description: Checks the formatting of empty method definitions.
1074
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
1075
+ Enabled: false
1076
+
1077
+ Style/EndBlock:
1078
+ Description: Avoid the use of END blocks.
1079
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-END-blocks
1080
+ Enabled: true
1081
+
1082
+ Style/Encoding:
1083
+ Description: Use UTF-8 as the source file encoding.
1084
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
1085
+ Enabled: true
1086
+
1087
+ Style/EvenOdd:
1088
+ Description: Favor the use of Integer#even? && Integer#odd?
1089
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
1090
+ Enabled: true
1091
+
1092
+ Style/FrozenStringLiteralComment:
1093
+ Description: Add the frozen_string_literal comment to the top of files to help transition from Ruby 2.3.0 to Ruby 3.0.
1094
+ Enabled: true
1095
+
1096
+ Lint/FlipFlop:
1097
+ Description: Checks for flip flops
1098
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-flip-flops
1099
+ Enabled: true
1100
+
1101
+ Style/For:
1102
+ Description: Checks use of for or each in multiline loops.
1103
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-for-loops
1104
+ Enabled: true
1105
+
1106
+ Style/FormatString:
1107
+ Description: Enforce the use of Kernel#sprintf, Kernel#format or String#%.
1108
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#sprintf
1109
+ Enabled: false
1110
+
1111
+ Style/FormatStringToken:
1112
+ Description: Use a consistent style for format string tokens.
1113
+ Enabled: true
1114
+
1115
+ Style/GlobalVars:
1116
+ Description: Do not introduce global variables.
1117
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#instance-vars
1118
+ Reference: http://www.zenspider.com/Languages/Ruby/QuickRef.html
1119
+ Enabled: true
1120
+
1121
+ Style/GuardClause:
1122
+ Description: Check for conditionals that can be replaced with guard clauses
1123
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
1124
+ Enabled: true
1125
+
1126
+ Style/HashSyntax:
1127
+ Description: 'Prefer Ruby 1.9 hash syntax { a: 1, b: 2 } over 1.8 syntax { :a => 1, :b => 2 }.'
1128
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-literals
1129
+ Enabled: true
1130
+
1131
+ Style/IfInsideElse:
1132
+ Description: Finds if nodes inside else, which can be converted to elsif.
1133
+ Enabled: true
1134
+
1135
+ Style/IfUnlessModifier:
1136
+ Description: Favor modifier if/unless usage when you have a single-line body.
1137
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
1138
+ Enabled: true
1139
+
1140
+ Style/IfUnlessModifierOfIfUnless:
1141
+ Description: Avoid modifier if/unless usage on conditionals.
1142
+ Enabled: true
1143
+
1144
+ Style/IfWithSemicolon:
1145
+ Description: Do not use if x; .... Use the ternary operator instead.
1146
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs
1147
+ Enabled: true
1148
+
1149
+ Style/IdenticalConditionalBranches:
1150
+ Description: Checks that conditional statements do not have an identical line at the end of each branch, which can validly be moved out of the conditional.
1151
+ Enabled: true
1152
+
1153
+ Style/InfiniteLoop:
1154
+ Description: Use Kernel#loop for infinite loops.
1155
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#infinite-loop
1156
+ Enabled: true
1157
+
1158
+ Style/InlineComment:
1159
+ Description: Avoid trailing inline comments.
1160
+ Enabled: false
1161
+
1162
+ Style/InverseMethods:
1163
+ Description: Use the inverse method instead of `!.method` if an inverse method is defined.
1164
+ Enabled: true
1165
+
1166
+ Style/ImplicitRuntimeError:
1167
+ Description: Use `raise` or `fail` with an explicit exception class and message, rather than just a message.
1168
+ Enabled: false
1169
+
1170
+ Style/Lambda:
1171
+ Description: Use the new lambda literal syntax for single-line blocks.
1172
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#lambda-multi-line
1173
+ Enabled: true
1174
+
1175
+ Style/LambdaCall:
1176
+ Description: Use lambda.call(...) instead of lambda.(...).
1177
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc-call
1178
+ Enabled: false
1179
+
1180
+ Style/LineEndConcatenation:
1181
+ Description: Use \ instead of + or << to concatenate two string literals at line end.
1182
+ Enabled: true
1183
+
1184
+ Style/MethodCallWithoutArgsParentheses:
1185
+ Description: Do not use parentheses for method calls with no arguments.
1186
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-invocation-parens
1187
+ Enabled: true
1188
+
1189
+ Style/MethodCallWithArgsParentheses:
1190
+ Description: Use parentheses for method calls with arguments.
1191
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-invocation-parens
1192
+ Enabled: false
1193
+
1194
+ Style/MethodCalledOnDoEndBlock:
1195
+ Description: Avoid chaining a method call on a do...end block.
1196
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
1197
+ Enabled: false
1198
+
1199
+ Style/MethodDefParentheses:
1200
+ Description: Checks if the method definitions have or don't have parentheses.
1201
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#method-parens
1202
+ Enabled: true
1203
+
1204
+ Style/MissingRespondToMissing:
1205
+ Enabled: true
1206
+
1207
+ Style/MinMax:
1208
+ Description: Use `Enumerable#minmax` instead of `Enumerable#min` and `Enumerable#max` in conjunction.'
1209
+ Enabled: true
1210
+
1211
+ Style/MissingElse:
1212
+ Description: Require if/case expressions to have an else branches. If enabled, it is recommended that Style/UnlessElse and Style/EmptyElse be enabled. This will conflict with Style/EmptyElse if Style/EmptyElse is configured to style "both"
1213
+ Enabled: false
1214
+ EnforcedStyle: both
1215
+ SupportedStyles:
1216
+ - if
1217
+ - case
1218
+ - both
1219
+
1220
+ Style/MixinGrouping:
1221
+ Description: Checks for grouping of mixins in `class` and `module` bodies.
1222
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#mixin-grouping
1223
+ Enabled: true
1224
+
1225
+ Style/ModuleFunction:
1226
+ Description: Checks for usage of `extend self` in modules.
1227
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#module-function
1228
+ Enabled: true
1229
+
1230
+ Style/MultilineBlockChain:
1231
+ Description: Avoid multi-line chains of blocks.
1232
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#single-line-blocks
1233
+ Enabled: false
1234
+
1235
+ Style/MultilineIfThen:
1236
+ Description: Do not use then for multi-line if/unless.
1237
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-then
1238
+ Enabled: true
1239
+
1240
+ Style/MultilineIfModifier:
1241
+ Description: Only use if/unless modifiers on single line statements.
1242
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-if-modifiers
1243
+ Enabled: true
1244
+
1245
+ Style/MultilineMemoization:
1246
+ Description: Wrap multiline memoizations in a `begin` and `end` block.
1247
+ Enabled: true
1248
+
1249
+ Style/MultilineTernaryOperator:
1250
+ Description: 'Avoid multi-line ?: (the ternary operator); use if/unless instead.'
1251
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-ternary
1252
+ Enabled: true
1253
+
1254
+ Style/MultipleComparison:
1255
+ Description: Avoid comparing a variable with multiple items in a conditional, use Array#include? instead.
1256
+ Enabled: true
1257
+
1258
+ Style/MutableConstant:
1259
+ Description: Do not assign mutable objects to constants.
1260
+ Enabled: false
1261
+
1262
+ Style/NegatedIf:
1263
+ Description: Favor unless over if for negative conditions (or control flow or).
1264
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#unless-for-negatives
1265
+ Enabled: true
1266
+
1267
+ Style/NegatedWhile:
1268
+ Description: Favor until over while for negative conditions.
1269
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#until-for-negatives
1270
+ Enabled: true
1271
+
1272
+ Style/NestedModifier:
1273
+ Description: Avoid using nested modifiers.
1274
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-modifiers
1275
+ Enabled: true
1276
+
1277
+ Style/NestedParenthesizedCalls:
1278
+ Description: Parenthesize method calls which are nested inside the argument list of another parenthesized method call.
1279
+ Enabled: true
1280
+
1281
+ Style/NestedTernaryOperator:
1282
+ Description: Use one expression per branch in a ternary operator.
1283
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-ternary
1284
+ Enabled: true
1285
+
1286
+ Style/Next:
1287
+ Description: Use `next` to skip iteration instead of a condition at the end.
1288
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals
1289
+ Enabled: true
1290
+
1291
+ Style/NilComparison:
1292
+ Description: 'Prefer x.nil? to x == nil.'
1293
+ StyleGuide: '#predicate-methods'
1294
+ Enabled: true
1295
+
1296
+ Style/NonNilCheck:
1297
+ Description: Checks for redundant nil checks.
1298
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-non-nil-checks
1299
+ Enabled: true
1300
+
1301
+ Style/Not:
1302
+ Description: Use ! instead of not.
1303
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#bang-not-not
1304
+ Enabled: true
1305
+
1306
+ Style/NumericLiterals:
1307
+ Description: Add underscores to large numeric literals to improve their readability.
1308
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics
1309
+ Enabled: true
1310
+
1311
+ Style/NumericLiteralPrefix:
1312
+ Description: Use smallcase prefixes for numeric literals.
1313
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#numeric-literal-prefixes
1314
+ Enabled: true
1315
+
1316
+ Style/NumericPredicate:
1317
+ Description: Checks for the use of predicate- or comparison methods for numeric comparisons.
1318
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#predicate-methods
1319
+ AutoCorrect: false
1320
+ Enabled: true
1321
+
1322
+ Style/OneLineConditional:
1323
+ Description: Favor the ternary operator(?:) over if/then/else/end constructs.
1324
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
1325
+ Enabled: false
1326
+
1327
+ Style/OptionalArguments:
1328
+ Description: Checks for optional arguments that do not appear at the end of the argument list
1329
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#optional-arguments
1330
+ Enabled: false
1331
+
1332
+ Style/OptionHash:
1333
+ Description: Don't use option hashes when you can use keyword arguments.
1334
+ Enabled: false
1335
+
1336
+ Style/OrAssignment:
1337
+ Description: Recommend usage of double pipe equals (||=) where applicable.
1338
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#double-pipe-for-uninit
1339
+ Enabled: true
1340
+
1341
+ Style/ParallelAssignment:
1342
+ Description: Check for simple usages of parallel assignment. It will only warn when the number of variables matches on both sides of the assignment.
1343
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#parallel-assignment
1344
+ Enabled: false
1345
+
1346
+ Style/ParenthesesAroundCondition:
1347
+ Description: Don't use parentheses around the condition of an if/unless/while.
1348
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-parens-around-condition
1349
+ Enabled: true
1350
+
1351
+ Style/PercentLiteralDelimiters:
1352
+ Description: Use `%`-literal delimiters consistently
1353
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-literal-braces
1354
+ Enabled: true
1355
+ PreferredDelimiters:
1356
+ default: ()
1357
+ '%i': '()'
1358
+ '%I': '()'
1359
+ '%r': '{}'
1360
+ '%w': '()'
1361
+ '%W': '()'
1362
+
1363
+ Style/PercentQLiterals:
1364
+ Description: Checks if uses of %Q/%q match the configured preference.
1365
+ Enabled: true
1366
+
1367
+ Style/PerlBackrefs:
1368
+ Description: Avoid Perl-style regex back references.
1369
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers
1370
+ Enabled: false
1371
+
1372
+ Style/PreferredHashMethods:
1373
+ Description: Checks use of `has_key?` and `has_value?` Hash methods.
1374
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#hash-key
1375
+ Enabled: true
1376
+
1377
+ Style/Proc:
1378
+ Description: Use proc instead of Proc.new.
1379
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#proc
1380
+ Enabled: true
1381
+
1382
+ Style/RaiseArgs:
1383
+ Description: Checks the arguments passed to raise/fail.
1384
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
1385
+ Enabled: false
1386
+
1387
+ Style/RedundantBegin:
1388
+ Description: Don't use begin blocks when they are not needed.
1389
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#begin-implicit
1390
+ Enabled: true
1391
+
1392
+ Style/RedundantConditional:
1393
+ Description: Don't return true/false from a conditional.
1394
+ Enabled: true
1395
+
1396
+ Style/RedundantException:
1397
+ Description: Checks for an obsolete RuntimeException argument in raise/fail.
1398
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-runtimeerror
1399
+ Enabled: true
1400
+
1401
+ Style/RedundantFreeze:
1402
+ Description: Checks usages of Object#freeze on immutable objects.
1403
+ Enabled: true
1404
+
1405
+ Style/RedundantParentheses:
1406
+ Description: Checks for parentheses that seem not to serve any purpose.
1407
+ Enabled: true
1408
+
1409
+ Style/RedundantReturn:
1410
+ Description: Don't use return where it's not required.
1411
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-explicit-return
1412
+ Enabled: true
1413
+
1414
+ Style/RedundantSelf:
1415
+ Description: Don't use self where it's not needed.
1416
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-self-unless-required
1417
+ Enabled: true
1418
+
1419
+ Style/RegexpLiteral:
1420
+ Description: Use / or %r around regular expressions.
1421
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-r
1422
+ Enabled: false
1423
+
1424
+ Style/RescueModifier:
1425
+ Description: Avoid using rescue in its modifier form.
1426
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-rescue-modifiers
1427
+ Enabled: false
1428
+
1429
+ Style/RescueStandardError:
1430
+ Description: Avoid rescuing without specifying an error class.
1431
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-blind-rescues'
1432
+ Enabled: true
1433
+
1434
+ Style/ReturnNil:
1435
+ Description: Use return instead of return nil.
1436
+ Enabled: false
1437
+
1438
+ Style/SafeNavigation:
1439
+ Description: This cop transforms usages of a method call safeguarded by a check for the existance of the object to safe navigation (`&.`).
1440
+ Enabled: true
1441
+
1442
+ Style/SelfAssignment:
1443
+ Description: Checks for places where self-assignment shorthand should have been used.
1444
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#self-assignment
1445
+ Enabled: true
1446
+
1447
+ Style/Semicolon:
1448
+ Description: Don't use semicolons to terminate expressions.
1449
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-semicolon
1450
+ Enabled: true
1451
+
1452
+ Style/Send:
1453
+ Description: Prefer `Object#__send__` or `Object#public_send` to `send`, as `send` may overlap with existing methods.
1454
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-public-send
1455
+ Enabled: false
1456
+
1457
+ Style/SignalException:
1458
+ Description: Checks for proper usage of fail and raise.
1459
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#prefer-raise-over-fail
1460
+ Enabled: true
1461
+
1462
+ Style/SingleLineBlockParams:
1463
+ Description: Enforces the names of some block params.
1464
+ Enabled: false
1465
+
1466
+ Style/SingleLineMethods:
1467
+ Description: Avoid single-line methods.
1468
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-single-line-methods
1469
+ Enabled: false
1470
+
1471
+ Style/SpecialGlobalVars:
1472
+ Description: Avoid Perl-style global variables.
1473
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms
1474
+ Enabled: false
1475
+
1476
+ Style/StabbyLambdaParentheses:
1477
+ Description: Check for the usage of parentheses around stabby lambda arguments.
1478
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#stabby-lambda-with-args
1479
+ Enabled: true
1480
+
1481
+ Style/StderrPuts:
1482
+ Description: Use `warn` instead of `$stderr.puts`.
1483
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#warn
1484
+ Enabled: true
1485
+
1486
+ Style/StringLiterals:
1487
+ Description: Checks if uses of quotes match the configured preference.
1488
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-string-literals
1489
+ EnforcedStyle: double_quotes
1490
+ Enabled: true
1491
+
1492
+ Style/StringLiteralsInInterpolation:
1493
+ Description: Checks if uses of quotes inside expressions in interpolated strings match the configured preference.
1494
+ Enabled: true
1495
+
1496
+ Style/StringMethods:
1497
+ Description: Checks if configured preferred methods are used over non-preferred.
1498
+ Enabled: false
1499
+
1500
+ Style/StructInheritance:
1501
+ Description: Checks for inheritance from Struct.new.
1502
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-extend-struct-new
1503
+ Enabled: false
1504
+
1505
+ Style/SymbolArray:
1506
+ Description: Use %i or %I for arrays of symbols.
1507
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-i
1508
+ Enabled: true
1509
+
1510
+ Style/SymbolLiteral:
1511
+ Description: Use plain symbols instead of string symbols when possible.
1512
+ Enabled: false
1513
+
1514
+ Style/SymbolProc:
1515
+ Description: Use symbols as procs instead of blocks when possible.
1516
+ Enabled: false
1517
+
1518
+ Style/TernaryParentheses:
1519
+ Description: Checks for use of parentheses around ternary conditions.
1520
+ Enabled: true
1521
+
1522
+ Style/MixinUsage:
1523
+ Description: Checks that `include`, `extend` and `prepend` exists at the top level.
1524
+ Enabled: true
1525
+
1526
+ Style/TrailingCommaInArguments:
1527
+ Description: Checks for trailing comma in argument lists.
1528
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-params-comma'
1529
+ Enabled: false
1530
+
1531
+ Style/TrailingCommaInArrayLiteral:
1532
+ Description: Checks for trailing comma in array and hash literals.'
1533
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
1534
+ Enabled: false
1535
+
1536
+ Style/TrailingCommaInHashLiteral:
1537
+ Description: Checks for trailing comma in array and hash literals.'
1538
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
1539
+ Enabled: false
1540
+
1541
+ Style/TrivialAccessors:
1542
+ Description: Prefer attr_* methods to trivial readers/writers.
1543
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
1544
+ Enabled: false
1545
+
1546
+ Style/UnlessElse:
1547
+ Description: Do not use unless with else. Rewrite these with the positive case first.
1548
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
1549
+ Enabled: true
1550
+
1551
+ Style/RedundantCapitalW:
1552
+ Description: Checks for %W when interpolation is not needed.
1553
+ Enabled: false
1554
+
1555
+ Style/RedundantInterpolation:
1556
+ Description: Checks for strings that are just an interpolated expression.
1557
+ Enabled: true
1558
+
1559
+ Style/RedundantPercentQ:
1560
+ Description: Checks for %q/%Q when single quotes or double quotes would do.
1561
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
1562
+ Enabled: false
1563
+
1564
+ Style/TrailingUnderscoreVariable:
1565
+ Description: Checks for the usage of unneeded trailing underscores at the end of parallel variable assignment.
1566
+ AllowNamedUnderscoreVariables: true
1567
+ Enabled: false
1568
+
1569
+ Style/VariableInterpolation:
1570
+ Description: Don't interpolate global, instance and class variables directly in strings.
1571
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#curlies-interpolate
1572
+ Enabled: true
1573
+
1574
+ Style/WhenThen:
1575
+ Description: Use when x then ... for one-line cases.
1576
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#one-line-cases
1577
+ Enabled: true
1578
+
1579
+ Style/WhileUntilDo:
1580
+ Description: Checks for redundant do after while or until.
1581
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-multiline-while-do
1582
+ Enabled: true
1583
+
1584
+ Style/WhileUntilModifier:
1585
+ Description: Favor modifier while/until usage when you have a single-line body.
1586
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
1587
+ Enabled: true
1588
+
1589
+ Style/WordArray:
1590
+ Description: Use %w or %W for arrays of words.
1591
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
1592
+ Enabled: true
1593
+
1594
+ Style/YodaCondition:
1595
+ Description: Do not use literals as the first operand of a comparison.
1596
+ Reference: https://en.wikipedia.org/wiki/Yoda_conditions
1597
+ Enabled: true
1598
+
1599
+ Style/ZeroLengthPredicate:
1600
+ Description: Use #empty? when testing for objects of length 0.
1601
+ Enabled: true
1602
+
1603
+ Lint/RaiseException:
1604
+ Description: Checks for `raise` or `fail` statements which are raising `Exception` class.
1605
+ Enabled: true
1606
+ Lint/StructNewOverride:
1607
+ Description: 'Disallow overriding the `Struct` built-in methods via `Struct.new`.'
1608
+ Enabled: true
1609
+ Style/HashEachMethods:
1610
+ Description: 'Use Hash#each_key and Hash#each_value.'
1611
+ Enabled: true
1612
+ Safe: false
1613
+ Style/HashTransformKeys:
1614
+ Description: 'Prefer `transform_keys` over `each_with_object` and `map`.'
1615
+ Enabled: true
1616
+ Safe: false
1617
+ Style/HashTransformValues:
1618
+ Description: 'Prefer `transform_values` over `each_with_object` and `map`.'
1619
+ Enabled: true
1620
+ Safe: false
1621
+
1622
+ Layout/EmptyLinesAroundAttributeAccessor:
1623
+ Enabled: true
1624
+ Lint/DeprecatedOpenSSLConstant:
1625
+ Enabled: true
1626
+ Style/SlicingWithRange:
1627
+ Enabled: true
1628
+ Lint/MixedRegexpCaptureTypes:
1629
+ Enabled: true
1630
+ Style/RedundantRegexpCharacterClass:
1631
+ Enabled: true
1632
+ Style/RedundantRegexpEscape:
1633
+ Enabled: true
1634
+ Lint/MissingSuper:
1635
+ Enabled: true
1636
+
1637
+
1638
+
1639
+ Lint/DuplicateElsifCondition:
1640
+ Enabled: true
1641
+ Lint/DuplicateRescueException:
1642
+ Enabled: true
1643
+ Lint/EmptyConditionalBody:
1644
+ Enabled: true
1645
+ Lint/FloatComparison:
1646
+ Enabled: true
1647
+ Lint/OutOfRangeRegexpRef:
1648
+ Enabled: true
1649
+ Lint/SelfAssignment:
1650
+ Enabled: true
1651
+ Lint/TopLevelReturnWithArgument:
1652
+ Enabled: true
1653
+ Lint/UnreachableLoop:
1654
+ Enabled: true
1655
+ Style/AccessorGrouping:
1656
+ Enabled: true
1657
+ Style/ArrayCoercion:
1658
+ Enabled: true
1659
+ Style/BisectedAttrAccessor:
1660
+ Enabled: true
1661
+ Style/CaseLikeIf:
1662
+ Enabled: true
1663
+ Style/ExplicitBlockArgument:
1664
+ Enabled: false
1665
+ Style/GlobalStdStream:
1666
+ Enabled: true
1667
+ Style/HashAsLastArrayItem:
1668
+ Enabled: false
1669
+ Style/HashLikeCase:
1670
+ Enabled: true
1671
+ Style/OptionalBooleanParameter:
1672
+ Enabled: true
1673
+ Style/RedundantAssignment:
1674
+ Enabled: true
1675
+ Style/RedundantFetchBlock:
1676
+ Enabled: true
1677
+ Style/RedundantFileExtensionInRequire:
1678
+ Enabled: true
1679
+ Style/SingleArgumentDig:
1680
+ Enabled: true
1681
+ Style/StringConcatenation:
1682
+ Enabled: true
1683
+ Performance/AncestorsInclude:
1684
+ Enabled: true
1685
+ Performance/BigDecimalWithNumericArgument:
1686
+ Enabled: true
1687
+ Performance/RedundantSortBlock:
1688
+ Enabled: true
1689
+ Performance/RedundantStringChars:
1690
+ Enabled: true
1691
+ Performance/ReverseFirst:
1692
+ Enabled: true
1693
+ Performance/SortReverse:
1694
+ Enabled: true
1695
+ Performance/Squeeze:
1696
+ Enabled: true
1697
+ Performance/StringInclude:
1698
+ Enabled: true
1699
+ Rails/ActiveRecordCallbacksOrder:
1700
+ Enabled: true
1701
+ Rails/FindById:
1702
+ Enabled: true
1703
+ Rails/Inquiry:
1704
+ Enabled: false
1705
+ Rails/MailerName:
1706
+ Enabled: true
1707
+ Rails/MatchRoute:
1708
+ Enabled: true
1709
+ Rails/NegateInclude:
1710
+ Enabled: true
1711
+ Rails/Pluck:
1712
+ Enabled: true
1713
+ Rails/PluckInWhere:
1714
+ Enabled: true
1715
+ Rails/RenderInline:
1716
+ Enabled: true
1717
+ Rails/RenderPlainText:
1718
+ Enabled: true
1719
+ Rails/ShortI18n:
1720
+ Enabled: true
1721
+ Rails/WhereExists:
1722
+ Enabled: true
1723
+ Rails/SkipsModelValidations:
1724
+ Enabled: false
1725
+ Rails/UniqueValidationWithoutIndex:
1726
+ Enabled: false
1727
+ Rails/InverseOf:
1728
+ Enabled: false
1729
+ Rails/LexicallyScopedActionFilter:
1730
+ Enabled: false
1731
+ Minitest/MultipleAssertions:
1732
+ Enabled: false
1733
+ Rails/OutputSafety:
1734
+ Enabled: false
1735
+ Naming/BlockForwarding:
1736
+ Enabled: false
1737
+ Rails/ReversibleMigration:
1738
+ Enabled: false
1739
+ Rails/I18nLocaleTexts:
1740
+ Enabled: false
1741
+ Rails/MigrationClassName:
1742
+ Enabled: false
1743
+ Rails/BulkChangeTable:
1744
+ Enabled: false
1745
+ Rails/DotSeparatedKeys:
1746
+ Enabled: false
1747
+ Rails/AttributeDefaultBlockValue:
1748
+ Enabled: false
1749
+
1750
+ Naming/MethodParameterName:
1751
+ Enabled: false