launchdarkly-server-sdk-otel 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/.rubocop.yml ADDED
@@ -0,0 +1,903 @@
1
+ require:
2
+ - rubocop-performance
3
+ - rubocop-rake
4
+ - rubocop-rspec
5
+
6
+ AllCops:
7
+ TargetRubyVersion: 3.0
8
+ Include:
9
+ - lib/**/*.rb
10
+ - spec/**/*.rb
11
+ - contract-tests/**/*.rb
12
+ NewCops: disable
13
+
14
+ Naming/AccessorMethodName:
15
+ Description: Check the naming of accessor methods for get_/set_.
16
+ Enabled: false
17
+
18
+ Style/AccessModifierDeclarations:
19
+ Description: 'Access modifiers should be declared to apply to a group of methods or inline before each method, depending on configuration.'
20
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
21
+ Enabled: false
22
+
23
+ Style/Alias:
24
+ Description: 'Use alias_method instead of alias.'
25
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#alias-method'
26
+ Enabled: false
27
+
28
+ Style/ArrayJoin:
29
+ Description: 'Use Array#join instead of Array#*.'
30
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#array-join'
31
+ Enabled: false
32
+
33
+ Style/AsciiComments:
34
+ Description: 'Use only ascii symbols in comments.'
35
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-comments'
36
+ Enabled: false
37
+
38
+ Naming/AsciiIdentifiers:
39
+ Description: 'Use only ascii symbols in identifiers.'
40
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#english-identifiers'
41
+ Enabled: false
42
+
43
+ Naming/VariableName:
44
+ Description: 'Makes sure that all variables use the configured style, snake_case or camelCase, for their names.'
45
+ Enabled: false
46
+
47
+ Style/Attr:
48
+ Description: 'Checks for uses of Module#attr.'
49
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr'
50
+ Enabled: false
51
+
52
+ Metrics/AbcSize:
53
+ Description: 'Checks that the ABC size of methods is not higher than the configured maximum.'
54
+ Enabled: false
55
+
56
+ Metrics/BlockLength:
57
+ Description: 'Checks if the length of a block exceeds some maximum value.'
58
+ Enabled: false
59
+
60
+ Metrics/BlockNesting:
61
+ Description: 'Avoid excessive block nesting'
62
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#three-is-the-number-thou-shalt-count'
63
+ Enabled: false
64
+
65
+ Style/CaseEquality:
66
+ Description: 'Avoid explicit use of the case equality operator(===).'
67
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-case-equality'
68
+ Enabled: false
69
+
70
+ Style/CharacterLiteral:
71
+ Description: 'Checks for uses of character literals.'
72
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-character-literals'
73
+ Enabled: false
74
+
75
+ Style/ClassAndModuleChildren:
76
+ Description: 'Checks style of children classes and modules.'
77
+ Enabled: true
78
+ EnforcedStyle: nested
79
+
80
+ Metrics/ClassLength:
81
+ Description: 'Avoid classes longer than 100 lines of code.'
82
+ Enabled: false
83
+
84
+ Metrics/ModuleLength:
85
+ Description: 'Avoid modules longer than 100 lines of code.'
86
+ Enabled: false
87
+
88
+ Style/ClassVars:
89
+ Description: 'Avoid the use of class variables.'
90
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-class-vars'
91
+ Enabled: false
92
+
93
+ Style/CollectionMethods:
94
+ Enabled: true
95
+ PreferredMethods:
96
+ find: detect
97
+ inject: reduce
98
+ collect: map
99
+ find_all: select
100
+
101
+ Style/ColonMethodCall:
102
+ Description: 'Do not use :: for method call.'
103
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#double-colons'
104
+ Enabled: false
105
+
106
+ Style/CommentAnnotation:
107
+ Description: >-
108
+ Checks formatting of special comments
109
+ (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
110
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#annotate-keywords'
111
+ Enabled: false
112
+
113
+ Metrics/CyclomaticComplexity:
114
+ Description: >-
115
+ A complexity metric that is strongly correlated to the number
116
+ of test cases needed to validate a method.
117
+ Enabled: false
118
+
119
+ Style/PreferredHashMethods:
120
+ Description: 'Checks for use of deprecated Hash methods.'
121
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#hash-key'
122
+ Enabled: false
123
+
124
+ Style/Documentation:
125
+ Description: 'Document classes and non-namespace modules.'
126
+ Enabled: false
127
+
128
+ Style/DoubleNegation:
129
+ Description: 'Checks for uses of double negation (!!).'
130
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-bang-bang'
131
+ Enabled: false
132
+
133
+ Style/EachWithObject:
134
+ Description: 'Prefer `each_with_object` over `inject` or `reduce`.'
135
+ Enabled: false
136
+
137
+ Style/EmptyLiteral:
138
+ Description: 'Prefer literals to Array.new/Hash.new/String.new.'
139
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#literal-array-hash'
140
+ Enabled: false
141
+
142
+ # Checks whether the source file has a utf-8 encoding comment or not
143
+ # AutoCorrectEncodingComment must match the regex
144
+ # /#.*coding\s?[:=]\s?(?:UTF|utf)-8/
145
+ Style/Encoding:
146
+ Enabled: false
147
+
148
+ Style/EvenOdd:
149
+ Description: 'Favor the use of Fixnum#even? && Fixnum#odd?'
150
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
151
+ Enabled: false
152
+
153
+ Naming/FileName:
154
+ Description: 'Use snake_case for source file names.'
155
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#snake-case-files'
156
+ Enabled: false
157
+
158
+ Lint/FlipFlop:
159
+ Description: 'Checks for flip flops'
160
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-flip-flops'
161
+ Enabled: false
162
+
163
+ Style/FrozenStringLiteralComment:
164
+ Description: 'Helps you transition from mutable string literals to frozen string literals.'
165
+ Enabled: false
166
+
167
+ Style/FormatString:
168
+ Description: 'Enforce the use of Kernel#sprintf, Kernel#format or String#%.'
169
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#sprintf'
170
+ Enabled: false
171
+
172
+ Style/GlobalVars:
173
+ Description: 'Do not introduce global variables.'
174
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#instance-vars'
175
+ Reference: 'https://www.zenspider.com/ruby/quickref.html'
176
+ Enabled: false
177
+
178
+ Style/GuardClause:
179
+ Description: 'Check for conditionals that can be replaced with guard clauses'
180
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
181
+ Enabled: false
182
+
183
+ Style/IfUnlessModifier:
184
+ Description: >-
185
+ Favor modifier if/unless usage when you have a
186
+ single-line body.
187
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier'
188
+ Enabled: false
189
+
190
+ Style/IfWithSemicolon:
191
+ Description: 'Do not use if x; .... Use the ternary operator instead.'
192
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-semicolon-ifs'
193
+ Enabled: false
194
+
195
+ Style/InlineComment:
196
+ Description: 'Avoid inline comments.'
197
+ Enabled: false
198
+
199
+ Style/Lambda:
200
+ Description: 'Use the new lambda literal syntax for single-line blocks.'
201
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#lambda-multi-line'
202
+ Enabled: false
203
+
204
+ Style/LambdaCall:
205
+ Description: 'Use lambda.call(...) instead of lambda.(...).'
206
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc-call'
207
+ Enabled: false
208
+
209
+ Style/LineEndConcatenation:
210
+ Description: >-
211
+ Use \ instead of + or << to concatenate two string literals at
212
+ line end.
213
+ Enabled: false
214
+
215
+ Layout/LineLength:
216
+ Description: 'Limit lines to 150 characters.'
217
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#80-character-limits'
218
+ Max: 180
219
+
220
+ Metrics/MethodLength:
221
+ Description: 'Avoid methods longer than 10 lines of code.'
222
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#short-methods'
223
+ Enabled: false
224
+
225
+ Style/ModuleFunction:
226
+ Description: 'Checks for usage of `extend self` in modules.'
227
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#module-function'
228
+ Enabled: false
229
+
230
+ Style/NegatedIf:
231
+ Description: >-
232
+ Favor unless over if for negative conditions
233
+ (or control flow or).
234
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#unless-for-negatives'
235
+ Enabled: true
236
+
237
+ Style/NegatedWhile:
238
+ Description: 'Favor until over while for negative conditions.'
239
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#until-for-negatives'
240
+ Enabled: true
241
+
242
+ Style/Next:
243
+ Description: 'Use `next` to skip iteration instead of a condition at the end.'
244
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-conditionals'
245
+ Enabled: false
246
+
247
+ Style/NilComparison:
248
+ Description: 'Prefer x.nil? to x == nil.'
249
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#predicate-methods'
250
+ Enabled: false
251
+
252
+ Style/Not:
253
+ Description: 'Use ! instead of not.'
254
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bang-not-not'
255
+ Enabled: false
256
+
257
+ Style/NumericLiterals:
258
+ Description: >-
259
+ Add underscores to large numeric literals to improve their
260
+ readability.
261
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics'
262
+ Enabled: false
263
+
264
+ Style/OneLineConditional:
265
+ Description: >-
266
+ Favor the ternary operator(?:) over
267
+ if/then/else/end constructs.
268
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#ternary-operator'
269
+ Enabled: false
270
+
271
+ Naming/BinaryOperatorParameterName:
272
+ Description: 'When defining binary operators, name the argument other.'
273
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#other-arg'
274
+ Enabled: false
275
+
276
+ Metrics/ParameterLists:
277
+ Description: 'Avoid parameter lists longer than three or four parameters.'
278
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#too-many-params'
279
+ Enabled: false
280
+
281
+ Metrics/PerceivedComplexity:
282
+ Enabled: false
283
+
284
+ Style/PercentLiteralDelimiters:
285
+ Description: 'Use `%`-literal delimiters consistently'
286
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-literal-braces'
287
+ Enabled: false
288
+
289
+ Style/PerlBackrefs:
290
+ Description: 'Avoid Perl-style regex back references.'
291
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-perl-regexp-last-matchers'
292
+ Enabled: false
293
+
294
+ Naming/PredicateName:
295
+ Description: 'Check the names of predicate methods.'
296
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark'
297
+ ForbiddenPrefixes:
298
+ - is_
299
+ Exclude:
300
+ - spec/**/*
301
+
302
+ Style/Proc:
303
+ Description: 'Use proc instead of Proc.new.'
304
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#proc'
305
+ Enabled: false
306
+
307
+ Style/RaiseArgs:
308
+ Description: 'Checks the arguments passed to raise/fail.'
309
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#exception-class-messages'
310
+ Enabled: false
311
+
312
+ Style/RegexpLiteral:
313
+ Description: 'Use / or %r around regular expressions.'
314
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-r'
315
+ Enabled: false
316
+
317
+ Style/SelfAssignment:
318
+ Description: >-
319
+ Checks for places where self-assignment shorthand should have
320
+ been used.
321
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#self-assignment'
322
+ Enabled: false
323
+
324
+ Style/SingleLineBlockParams:
325
+ Description: 'Enforces the names of some block params.'
326
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#reduce-blocks'
327
+ Enabled: false
328
+
329
+ Style/SingleLineMethods:
330
+ Description: 'Avoid single-line methods.'
331
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-single-line-methods'
332
+ Enabled: false
333
+
334
+ Style/SignalException:
335
+ Description: 'Checks for proper usage of fail and raise.'
336
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#fail-method'
337
+ Enabled: false
338
+
339
+ Style/SpecialGlobalVars:
340
+ Description: 'Avoid Perl-style global variables.'
341
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-cryptic-perlisms'
342
+ Enabled: false
343
+
344
+ Style/StringLiterals:
345
+ Description: 'Checks if uses of quotes match the configured preference.'
346
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-string-literals'
347
+ EnforcedStyle: double_quotes
348
+ Enabled: false
349
+
350
+ Style/TrailingCommaInArguments:
351
+ Description: 'Checks for trailing comma in argument lists.'
352
+ StyleGuide: '#no-trailing-params-comma'
353
+ Enabled: true
354
+
355
+ Style/TrailingCommaInArrayLiteral:
356
+ Description: 'Checks for trailing comma in array and hash literals.'
357
+ EnforcedStyleForMultiline: comma
358
+
359
+ Style/TrailingCommaInHashLiteral:
360
+ Description: 'Checks for trailing comma in array and hash literals.'
361
+ EnforcedStyleForMultiline: comma
362
+
363
+ Style/TrivialAccessors:
364
+ Description: 'Prefer attr_* methods to trivial readers/writers.'
365
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#attr_family'
366
+ Enabled: false
367
+
368
+ Style/VariableInterpolation:
369
+ Description: >-
370
+ Don't interpolate global, instance and class variables
371
+ directly in strings.
372
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#curlies-interpolate'
373
+ Enabled: false
374
+
375
+ Style/WhenThen:
376
+ Description: 'Use when x then ... for one-line cases.'
377
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#one-line-cases'
378
+ Enabled: false
379
+
380
+ Style/WhileUntilModifier:
381
+ Description: >-
382
+ Favor modifier while/until usage when you have a
383
+ single-line body.
384
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier'
385
+ Enabled: false
386
+
387
+ Style/WordArray:
388
+ Description: 'Use %w or %W for arrays of words.'
389
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#percent-w'
390
+ Enabled: false
391
+
392
+ # Layout
393
+ Layout/DotPosition:
394
+ Description: 'Checks the position of the dot in multi-line method calls.'
395
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains'
396
+ EnforcedStyle: leading
397
+
398
+ Layout/ExtraSpacing:
399
+ Description: 'Do not use unnecessary spacing.'
400
+ Enabled: true
401
+ AllowBeforeTrailingComments: true
402
+
403
+ Layout/MultilineOperationIndentation:
404
+ Description: >-
405
+ Checks indentation of binary operations that span more than
406
+ one line.
407
+ Enabled: true
408
+ EnforcedStyle: indented
409
+
410
+ Layout/InitialIndentation:
411
+ Description: >-
412
+ Checks the indentation of the first non-blank non-comment line in a file.
413
+ Enabled: false
414
+
415
+ Layout/SpaceInsideArrayLiteralBrackets:
416
+ Description: "Checks that brackets used for array literals have or don't have surrounding space depending on configuration."
417
+ Enabled: false
418
+
419
+ Layout/TrailingWhitespace:
420
+ Description: "Ensures all trailing whitespace has been removed"
421
+ Enabled: true
422
+
423
+ # Lint
424
+
425
+ Lint/AmbiguousOperator:
426
+ Description: >-
427
+ Checks for ambiguous operators in the first argument of a
428
+ method invocation without parentheses.
429
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-as-args'
430
+ Enabled: false
431
+
432
+ Lint/AmbiguousRegexpLiteral:
433
+ Description: >-
434
+ Checks for ambiguous regexp literals in the first argument of
435
+ a method invocation without parenthesis.
436
+ Enabled: false
437
+
438
+ Lint/AssignmentInCondition:
439
+ Description: "Don't use assignment in conditions."
440
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition'
441
+ Enabled: false
442
+
443
+ Lint/CircularArgumentReference:
444
+ Description: "Don't refer to the keyword argument in the default value."
445
+ Enabled: false
446
+
447
+ Layout/ConditionPosition:
448
+ Description: >-
449
+ Checks for condition placed in a confusing position relative to
450
+ the keyword.
451
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#same-line-condition'
452
+ Enabled: false
453
+
454
+ Lint/DeprecatedClassMethods:
455
+ Description: 'Check for deprecated class method calls.'
456
+ Enabled: false
457
+
458
+ Lint/DuplicateHashKey:
459
+ Description: 'Check for duplicate keys in hash literals.'
460
+ Enabled: false
461
+
462
+ Lint/EachWithObjectArgument:
463
+ Description: 'Check for immutable argument given to each_with_object.'
464
+ Enabled: false
465
+
466
+ Lint/ElseLayout:
467
+ Description: 'Check for odd code arrangement in an else block.'
468
+ Enabled: false
469
+
470
+ Lint/FormatParameterMismatch:
471
+ Description: 'The number of parameters to format/sprint must match the fields.'
472
+ Enabled: false
473
+
474
+ Lint/SuppressedException:
475
+ Description: "Don't suppress exception."
476
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions'
477
+ Enabled: false
478
+
479
+ Lint/LiteralAsCondition:
480
+ Description: 'Checks of literals used in conditions.'
481
+ Enabled: false
482
+
483
+ Lint/LiteralInInterpolation:
484
+ Description: 'Checks for literals used in interpolation.'
485
+ Enabled: false
486
+
487
+ Lint/Loop:
488
+ Description: >-
489
+ Use Kernel#loop with break rather than begin/end/until or
490
+ begin/end/while for post-loop tests.
491
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#loop-with-break'
492
+ Enabled: false
493
+
494
+ Lint/NestedMethodDefinition:
495
+ Description: 'Do not use nested method definitions.'
496
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-nested-methods'
497
+ Enabled: false
498
+
499
+ Lint/NonLocalExitFromIterator:
500
+ Description: 'Do not use return in iterator to cause non-local exit.'
501
+ Enabled: false
502
+
503
+ Lint/ParenthesesAsGroupedExpression:
504
+ Description: >-
505
+ Checks for method calls with a space before the opening
506
+ parenthesis.
507
+ StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#parens-no-spaces'
508
+ Enabled: false
509
+
510
+ Lint/RequireParentheses:
511
+ Description: >-
512
+ Use parentheses in the method call to avoid confusion
513
+ about precedence.
514
+ Enabled: false
515
+
516
+ Lint/UnderscorePrefixedVariableName:
517
+ Description: 'Do not use prefix `_` for a variable that is used.'
518
+ Enabled: false
519
+
520
+ Lint/RedundantCopDisableDirective:
521
+ Description: >-
522
+ Checks for rubocop:disable comments that can be removed.
523
+ Note: this cop is not disabled when disabling all cops.
524
+ It must be explicitly disabled.
525
+ Enabled: false
526
+
527
+ Lint/Void:
528
+ Description: 'Possible use of operator/literal/variable in void context.'
529
+ Enabled: false
530
+
531
+ # Performance
532
+
533
+ Performance/CaseWhenSplat:
534
+ Description: >-
535
+ Place `when` conditions that use splat at the end
536
+ of the list of `when` branches.
537
+ Enabled: false
538
+
539
+ Performance/Count:
540
+ Description: >-
541
+ Use `count` instead of `select...size`, `reject...size`,
542
+ `select...count`, `reject...count`, `select...length`,
543
+ and `reject...length`.
544
+ Enabled: false
545
+
546
+ Performance/Detect:
547
+ Description: >-
548
+ Use `detect` instead of `select.first`, `find_all.first`,
549
+ `select.last`, and `find_all.last`.
550
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code'
551
+ Enabled: false
552
+
553
+ Performance/FlatMap:
554
+ Description: >-
555
+ Use `Enumerable#flat_map`
556
+ instead of `Enumerable#map...Array#flatten(1)`
557
+ or `Enumberable#collect..Array#flatten(1)`
558
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code'
559
+ Enabled: false
560
+
561
+ Performance/ReverseEach:
562
+ Description: 'Use `reverse_each` instead of `reverse.each`.'
563
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#enumerablereverseeach-vs-enumerablereverse_each-code'
564
+ Enabled: false
565
+
566
+ Style/Sample:
567
+ Description: >-
568
+ Use `sample` instead of `shuffle.first`,
569
+ `shuffle.last`, and `shuffle[Fixnum]`.
570
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code'
571
+ Enabled: false
572
+
573
+ Performance/Size:
574
+ Description: >-
575
+ Use `size` instead of `count` for counting
576
+ the number of elements in `Array` and `Hash`.
577
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code'
578
+ Enabled: false
579
+
580
+ Performance/StringReplacement:
581
+ Description: >-
582
+ Use `tr` instead of `gsub` when you are replacing the same
583
+ number of characters. Use `delete` instead of `gsub` when
584
+ you are deleting characters.
585
+ Reference: 'https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code'
586
+ Enabled: false
587
+
588
+ # Disabled temporarily while we bring code base inline
589
+ Layout/ArgumentAlignment:
590
+ Enabled: false
591
+
592
+ Layout/ArrayAlignment:
593
+ Enabled: false
594
+
595
+ Layout/BlockEndNewline:
596
+ Enabled: false
597
+
598
+ Layout/CaseIndentation:
599
+ Enabled: false
600
+
601
+ Layout/ClosingHeredocIndentation:
602
+ Enabled: false
603
+
604
+ Layout/ClosingParenthesisIndentation:
605
+ Enabled: false
606
+
607
+ Layout/CommentIndentation:
608
+ Enabled: false
609
+
610
+ Layout/ElseAlignment:
611
+ Enabled: false
612
+
613
+ Layout/EmptyLineAfterGuardClause:
614
+ Enabled: false
615
+
616
+ Layout/EmptyLineBetweenDefs:
617
+ Enabled: false
618
+
619
+ Layout/EmptyLines:
620
+ Enabled: false
621
+
622
+ Layout/EmptyLinesAroundBlockBody:
623
+ Enabled: false
624
+
625
+ Layout/EmptyLinesAroundMethodBody:
626
+ Enabled: false
627
+
628
+ Layout/EmptyLinesAroundModuleBody:
629
+ Enabled: false
630
+
631
+ Layout/EndAlignment:
632
+ Enabled: false
633
+
634
+ Layout/FirstArgumentIndentation:
635
+ Enabled: false
636
+
637
+ Layout/FirstHashElementIndentation:
638
+ Enabled: false
639
+
640
+ Layout/HashAlignment:
641
+ Enabled: false
642
+
643
+ Layout/HeredocIndentation:
644
+ Enabled: false
645
+
646
+ Layout/IndentationWidth:
647
+ Enabled: false
648
+
649
+ Layout/LeadingCommentSpace:
650
+ Enabled: false
651
+
652
+ Layout/LeadingEmptyLines:
653
+ Enabled: false
654
+
655
+ Layout/MultilineArrayBraceLayout:
656
+ Enabled: false
657
+
658
+ Layout/MultilineBlockLayout:
659
+ Enabled: false
660
+
661
+ Layout/MultilineHashBraceLayout:
662
+ Enabled: false
663
+
664
+ Layout/MultilineMethodCallBraceLayout:
665
+ Enabled: false
666
+
667
+ Layout/MultilineMethodCallIndentation:
668
+ Enabled: false
669
+
670
+ Layout/ParameterAlignment:
671
+ Enabled: false
672
+
673
+ Layout/SpaceAfterComma:
674
+ Enabled: false
675
+
676
+ Layout/SpaceAroundBlockParameters:
677
+ Enabled: false
678
+
679
+ Layout/SpaceAroundEqualsInParameterDefault:
680
+ Enabled: false
681
+
682
+ Layout/SpaceAroundOperators:
683
+ Enabled: false
684
+
685
+ Layout/SpaceBeforeBlockBraces:
686
+ Enabled: false
687
+
688
+ Layout/SpaceBeforeComma:
689
+ Enabled: false
690
+
691
+ Layout/SpaceInsideBlockBraces:
692
+ Enabled: false
693
+
694
+ Layout/SpaceInsideHashLiteralBraces:
695
+ Enabled: false
696
+
697
+ Layout/SpaceInsideReferenceBrackets:
698
+ Enabled: false
699
+
700
+ Layout/TrailingEmptyLines:
701
+ Enabled: false
702
+
703
+ Lint/ConstantDefinitionInBlock:
704
+ Enabled: false
705
+
706
+ Lint/IneffectiveAccessModifier:
707
+ Enabled: false
708
+
709
+ Lint/MissingCopEnableDirective:
710
+ Enabled: false
711
+
712
+ Lint/RedundantRequireStatement:
713
+ Enabled: false
714
+
715
+ Lint/StructNewOverride:
716
+ Enabled: false
717
+
718
+ Lint/UnusedBlockArgument:
719
+ Enabled: false
720
+
721
+ Lint/UnusedMethodArgument:
722
+ Enabled: false
723
+
724
+ Lint/UselessAccessModifier:
725
+ Enabled: false
726
+
727
+ Lint/UselessAssignment:
728
+ Enabled: false
729
+
730
+ Lint/UselessMethodDefinition:
731
+ Enabled: false
732
+
733
+ Naming/BlockParameterName:
734
+ Enabled: false
735
+
736
+ Naming/HeredocDelimiterNaming:
737
+ Enabled: false
738
+
739
+ Naming/MethodParameterName:
740
+ Enabled: false
741
+
742
+ Naming/RescuedExceptionsVariableName:
743
+ Enabled: false
744
+
745
+ Naming/VariableNumber:
746
+ Enabled: false
747
+
748
+ Style/AccessorGrouping:
749
+ Enabled: false
750
+
751
+ Style/AndOr:
752
+ Enabled: false
753
+
754
+ Style/BlockDelimiters:
755
+ Enabled: false
756
+
757
+ Style/CaseLikeIf:
758
+ Enabled: false
759
+
760
+ Style/CombinableLoops:
761
+ Enabled: false
762
+
763
+ Style/CommentedKeyword:
764
+ Enabled: false
765
+
766
+ Style/ConditionalAssignment:
767
+ Enabled: false
768
+
769
+ Style/DefWithParentheses:
770
+ Enabled: false
771
+
772
+ Style/EmptyElse:
773
+ Enabled: false
774
+
775
+ Style/EmptyMethod:
776
+ Enabled: false
777
+
778
+ Style/ExplicitBlockArgument:
779
+ Enabled: false
780
+
781
+ Style/For:
782
+ Enabled: false
783
+
784
+ Style/FormatStringToken:
785
+ Enabled: false
786
+
787
+ Style/GlobalStdStream:
788
+ Enabled: false
789
+
790
+ Style/HashEachMethods:
791
+ Enabled: false
792
+
793
+ Style/HashSyntax:
794
+ Enabled: false
795
+
796
+ Style/InfiniteLoop:
797
+ Enabled: false
798
+
799
+ Style/InverseMethods:
800
+ Enabled: false
801
+
802
+ Style/MethodCallWithoutArgsParentheses:
803
+ Enabled: false
804
+
805
+ Style/MissingRespondToMissing:
806
+ Enabled: false
807
+
808
+ Style/MultilineIfThen:
809
+ Enabled: false
810
+
811
+ Style/MultilineTernaryOperator:
812
+ Enabled: false
813
+
814
+ Style/MultipleComparison:
815
+ Enabled: false
816
+
817
+ Style/MutableConstant:
818
+ Enabled: false
819
+
820
+ Style/NumericPredicate:
821
+ Enabled: false
822
+
823
+ Style/OptionalBooleanParameter:
824
+ Enabled: false
825
+
826
+ Style/ParallelAssignment:
827
+ Enabled: false
828
+
829
+ Style/RedundantAssignment:
830
+ Enabled: false
831
+
832
+ Style/RedundantBegin:
833
+ Enabled: false
834
+
835
+ Style/RedundantCondition:
836
+ Enabled: true
837
+
838
+ Style/RedundantException:
839
+ Enabled: false
840
+
841
+ Style/RedundantFileExtensionInRequire:
842
+ Enabled: false
843
+
844
+ Style/RedundantParentheses:
845
+ Enabled: true
846
+
847
+ Style/RedundantRegexpEscape:
848
+ Enabled: false
849
+
850
+ Style/RedundantReturn:
851
+ Enabled: true
852
+
853
+ Style/RedundantSelf:
854
+ Enabled: false
855
+
856
+ Style/RescueStandardError:
857
+ Enabled: false
858
+
859
+ Style/SafeNavigation:
860
+ Enabled: false
861
+
862
+ Style/Semicolon:
863
+ Enabled: true
864
+ AllowAsExpressionSeparator: true
865
+
866
+ Style/SlicingWithRange:
867
+ Enabled: false
868
+
869
+ Style/SoleNestedConditional:
870
+ Enabled: false
871
+
872
+ Style/StringConcatenation:
873
+ Enabled: false
874
+
875
+ Style/SymbolArray:
876
+ Enabled: false
877
+
878
+ Style/SymbolProc:
879
+ Enabled: false
880
+
881
+ Style/TernaryParentheses:
882
+ Enabled: false
883
+
884
+ Style/TrailingUnderscoreVariable:
885
+ Enabled: false
886
+
887
+ Style/WhileUntilDo:
888
+ Enabled: false
889
+
890
+ Style/ZeroLengthPredicate:
891
+ Enabled: false
892
+
893
+ RSpec/FilePath:
894
+ SpecSuffixOnly: true
895
+
896
+ RSpec/ExampleLength:
897
+ Enabled: false
898
+
899
+ RSpec/MultipleExpectations:
900
+ Enabled: false
901
+
902
+ RSpec/MultipleMemoizedHelpers:
903
+ Enabled: false