similar_count 0.1.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,1117 @@
1
+ require:
2
+ - rubocop-performance
3
+
4
+ AllCops:
5
+ SuggestExtensions: false
6
+ TargetRubyVersion: 3.1.0
7
+ DisabledByDefault: true
8
+
9
+ Bundler/InsecureProtocolSource:
10
+ Enabled: true
11
+ Include:
12
+ - '**/*.gemfile'
13
+ - '**/Gemfile'
14
+ - '**/gems.rb'
15
+
16
+ Bundler/DuplicatedGem:
17
+ Enabled: true
18
+ Include:
19
+ - '**/*.gemfile'
20
+ - '**/Gemfile'
21
+ - '**/gems.rb'
22
+
23
+ Bundler/GemComment:
24
+ Enabled: false
25
+
26
+ Bundler/OrderedGems:
27
+ Enabled: true
28
+ Include:
29
+ - '**/*.gemfile'
30
+ - '**/Gemfile'
31
+ - '**/gems.rb'
32
+
33
+ Gemspec/DuplicatedAssignment:
34
+ Enabled: true
35
+ Include:
36
+ - '**/*.gemspec'
37
+
38
+ Gemspec/OrderedDependencies:
39
+ Enabled: true
40
+ Include:
41
+ - '**/*.gemspec'
42
+
43
+ Layout/AccessModifierIndentation:
44
+ Enabled: true
45
+ EnforcedStyle: indent
46
+ IndentationWidth: ~
47
+
48
+ Layout/ArgumentAlignment:
49
+ Enabled: true
50
+ EnforcedStyle: with_first_argument
51
+
52
+ Layout/ArrayAlignment:
53
+ Enabled: true
54
+
55
+ Layout/HashAlignment:
56
+ Enabled: true
57
+ EnforcedColonStyle: table
58
+ EnforcedLastArgumentHashStyle: always_inspect
59
+ EnforcedHashRocketStyle: table
60
+
61
+ Layout/ParameterAlignment:
62
+ Enabled: true
63
+ EnforcedStyle: with_fixed_indentation
64
+ IndentationWidth: ~
65
+
66
+ Layout/BlockAlignment:
67
+ Enabled: true
68
+ EnforcedStyleAlignWith: either
69
+
70
+ Layout/BlockEndNewline:
71
+ Enabled: true
72
+
73
+ # Disabled because IndentOneStep can't be configured for one-liner cases. See:
74
+ # https://github.com/rubocop-hq/rubocop/issues/6447
75
+ # Layout/CaseIndentation:
76
+ # Enabled: true
77
+
78
+ Layout/ClosingHeredocIndentation:
79
+ Enabled: true
80
+
81
+ Layout/ClosingParenthesisIndentation:
82
+ Enabled: false
83
+
84
+ Layout/CommentIndentation:
85
+ Enabled: true
86
+
87
+ Layout/ConditionPosition:
88
+ Enabled: true
89
+
90
+ Layout/DefEndAlignment:
91
+ Enabled: true
92
+ EnforcedStyleAlignWith: start_of_line
93
+ AutoCorrect: false
94
+ Severity: warning
95
+
96
+ Layout/DotPosition:
97
+ Enabled: true
98
+ EnforcedStyle: leading
99
+
100
+ Layout/ElseAlignment:
101
+ Enabled: true
102
+
103
+ Layout/EmptyComment:
104
+ Enabled: true
105
+ AllowBorderComment: true
106
+ AllowMarginComment: true
107
+
108
+ Layout/EmptyLineAfterMagicComment:
109
+ Enabled: true
110
+
111
+ Layout/EmptyLineBetweenDefs:
112
+ Enabled: true
113
+ AllowAdjacentOneLineDefs: false
114
+ NumberOfEmptyLines: 1
115
+
116
+ Layout/EmptyLines:
117
+ Enabled: true
118
+
119
+ Layout/EmptyLinesAroundAccessModifier:
120
+ Enabled: true
121
+
122
+ Layout/EmptyLinesAroundArguments:
123
+ Enabled: true
124
+
125
+ Layout/EmptyLinesAroundBeginBody:
126
+ Enabled: true
127
+
128
+ Layout/EmptyLinesAroundBlockBody:
129
+ Enabled: true
130
+ EnforcedStyle: no_empty_lines
131
+
132
+ Layout/EmptyLinesAroundClassBody:
133
+ Enabled: true
134
+ EnforcedStyle: no_empty_lines
135
+
136
+ Layout/EmptyLinesAroundExceptionHandlingKeywords:
137
+ Enabled: true
138
+
139
+ Layout/EmptyLinesAroundMethodBody:
140
+ Enabled: true
141
+
142
+ Layout/EmptyLinesAroundModuleBody:
143
+ Enabled: true
144
+ EnforcedStyle: no_empty_lines
145
+
146
+ Layout/EndAlignment:
147
+ Enabled: true
148
+ AutoCorrect: true
149
+ EnforcedStyleAlignWith: variable
150
+ Severity: warning
151
+
152
+ Layout/EndOfLine:
153
+ Enabled: true
154
+ EnforcedStyle: native
155
+
156
+ Layout/ExtraSpacing:
157
+ Enabled: true
158
+ AllowForAlignment: true
159
+ AllowBeforeTrailingComments: true
160
+ ForceEqualSignAlignment: false
161
+
162
+ Layout/FirstArgumentIndentation:
163
+ Enabled: true
164
+ EnforcedStyle: consistent_relative_to_receiver
165
+
166
+ Layout/FirstArrayElementIndentation:
167
+ Enabled: true
168
+ EnforcedStyle: special_inside_parentheses
169
+ IndentationWidth: ~
170
+
171
+ Layout/AssignmentIndentation:
172
+ Enabled: true
173
+ IndentationWidth: ~
174
+
175
+ Layout/FirstHashElementIndentation:
176
+ Enabled: true
177
+ EnforcedStyle: consistent
178
+ IndentationWidth: ~
179
+
180
+ Layout/HeredocIndentation:
181
+ Enabled: true
182
+
183
+ Layout/IndentationConsistency:
184
+ Enabled: true
185
+ EnforcedStyle: normal
186
+
187
+ Layout/IndentationWidth:
188
+ Enabled: true
189
+ Width: 2
190
+ AllowedPatterns: []
191
+
192
+ Layout/InitialIndentation:
193
+ Enabled: true
194
+
195
+ Layout/LeadingEmptyLines:
196
+ Enabled: true
197
+
198
+ Layout/LeadingCommentSpace:
199
+ Enabled: true
200
+
201
+ Layout/MultilineArrayBraceLayout:
202
+ Enabled: true
203
+ EnforcedStyle: symmetrical
204
+
205
+ Layout/MultilineBlockLayout:
206
+ Enabled: true
207
+
208
+ Layout/MultilineHashBraceLayout:
209
+ Enabled: true
210
+ EnforcedStyle: symmetrical
211
+
212
+ Layout/MultilineMethodCallBraceLayout:
213
+ Enabled: true
214
+ EnforcedStyle: symmetrical
215
+
216
+ Layout/MultilineMethodCallIndentation:
217
+ Enabled: true
218
+ EnforcedStyle: indented
219
+ IndentationWidth: ~
220
+
221
+ Layout/MultilineMethodDefinitionBraceLayout:
222
+ Enabled: true
223
+ EnforcedStyle: symmetrical
224
+
225
+ Layout/MultilineOperationIndentation:
226
+ Enabled: true
227
+ EnforcedStyle: indented
228
+ IndentationWidth: ~
229
+
230
+ Layout/RescueEnsureAlignment:
231
+ Enabled: true
232
+
233
+ Layout/SpaceAfterColon:
234
+ Enabled: true
235
+
236
+ Layout/SpaceAfterComma:
237
+ Enabled: true
238
+
239
+ Layout/SpaceAfterMethodName:
240
+ Enabled: true
241
+
242
+ Layout/SpaceAfterNot:
243
+ Enabled: true
244
+
245
+ Layout/SpaceAfterSemicolon:
246
+ Enabled: true
247
+
248
+ Layout/SpaceAroundBlockParameters:
249
+ Enabled: true
250
+ EnforcedStyleInsidePipes: no_space
251
+
252
+ Layout/SpaceAroundEqualsInParameterDefault:
253
+ Enabled: true
254
+ EnforcedStyle: space
255
+
256
+ Layout/SpaceAroundKeyword:
257
+ Enabled: true
258
+
259
+ Layout/SpaceAroundOperators:
260
+ Enabled: true
261
+ AllowForAlignment: true
262
+
263
+ Layout/SpaceBeforeBlockBraces:
264
+ Enabled: true
265
+ EnforcedStyle: space
266
+ EnforcedStyleForEmptyBraces: space
267
+
268
+ Layout/SpaceBeforeComma:
269
+ Enabled: true
270
+
271
+ Layout/SpaceBeforeComment:
272
+ Enabled: true
273
+
274
+ Layout/SpaceBeforeFirstArg:
275
+ Enabled: true
276
+ AllowForAlignment: true
277
+
278
+ Layout/SpaceBeforeSemicolon:
279
+ Enabled: true
280
+
281
+ Layout/SpaceInLambdaLiteral:
282
+ Enabled: true
283
+ EnforcedStyle: require_no_space
284
+
285
+ Layout/SpaceInsideArrayLiteralBrackets:
286
+ Enabled: true
287
+ EnforcedStyle: no_space
288
+ EnforcedStyleForEmptyBrackets: no_space
289
+
290
+ Layout/SpaceInsideArrayPercentLiteral:
291
+ Enabled: true
292
+
293
+ Layout/SpaceInsideBlockBraces:
294
+ Enabled: true
295
+ EnforcedStyle: space
296
+ EnforcedStyleForEmptyBraces: no_space
297
+ SpaceBeforeBlockParameters: true
298
+
299
+ Layout/SpaceInsideHashLiteralBraces:
300
+ Enabled: true
301
+ EnforcedStyle: space
302
+ EnforcedStyleForEmptyBraces: no_space
303
+
304
+ Layout/SpaceInsideParens:
305
+ Enabled: true
306
+ EnforcedStyle: no_space
307
+
308
+ Layout/SpaceInsidePercentLiteralDelimiters:
309
+ Enabled: true
310
+
311
+ Layout/SpaceInsideRangeLiteral:
312
+ Enabled: true
313
+
314
+ Layout/SpaceInsideReferenceBrackets:
315
+ Enabled: true
316
+ EnforcedStyle: no_space
317
+ EnforcedStyleForEmptyBrackets: no_space
318
+
319
+ Layout/SpaceInsideStringInterpolation:
320
+ Enabled: true
321
+ EnforcedStyle: no_space
322
+
323
+ Layout/IndentationStyle:
324
+ Enabled: true
325
+ IndentationWidth: ~
326
+
327
+ Layout/TrailingEmptyLines:
328
+ Enabled: true
329
+ EnforcedStyle: final_newline
330
+
331
+ Layout/TrailingWhitespace:
332
+ Enabled: true
333
+ AllowInHeredoc: false
334
+
335
+ Lint/AmbiguousOperator:
336
+ Enabled: true
337
+
338
+ Lint/AmbiguousRegexpLiteral:
339
+ Enabled: true
340
+
341
+ Lint/AssignmentInCondition:
342
+ Enabled: true
343
+ AllowSafeAssignment: true
344
+
345
+ Lint/BigDecimalNew:
346
+ Enabled: true
347
+
348
+ Lint/BooleanSymbol:
349
+ Enabled: true
350
+
351
+ Lint/CircularArgumentReference:
352
+ Enabled: true
353
+
354
+ Lint/Debugger:
355
+ Enabled: true
356
+
357
+ Lint/DeprecatedClassMethods:
358
+ Enabled: true
359
+
360
+ Lint/DuplicateCaseCondition:
361
+ Enabled: true
362
+
363
+ Lint/DuplicateMethods:
364
+ Enabled: true
365
+
366
+ Lint/DuplicateHashKey:
367
+ Enabled: true
368
+
369
+ Lint/EachWithObjectArgument:
370
+ Enabled: true
371
+
372
+ Lint/ElseLayout:
373
+ Enabled: true
374
+
375
+ Lint/EmptyEnsure:
376
+ Enabled: true
377
+ AutoCorrect: false
378
+
379
+ Lint/EmptyExpression:
380
+ Enabled: true
381
+
382
+ Lint/EmptyInterpolation:
383
+ Enabled: true
384
+
385
+ Lint/EmptyWhen:
386
+ Enabled: true
387
+
388
+ Lint/EnsureReturn:
389
+ Enabled: true
390
+
391
+ Lint/ErbNewArguments:
392
+ Enabled: true
393
+
394
+ Lint/FlipFlop:
395
+ Enabled: true
396
+
397
+ Lint/FloatOutOfRange:
398
+ Enabled: true
399
+
400
+ Lint/FormatParameterMismatch:
401
+ Enabled: true
402
+
403
+ Lint/ImplicitStringConcatenation:
404
+ Enabled: true
405
+
406
+ Lint/IneffectiveAccessModifier:
407
+ Enabled: true
408
+
409
+ Lint/InheritException:
410
+ Enabled: true
411
+ EnforcedStyle: runtime_error
412
+
413
+ Lint/InterpolationCheck:
414
+ Enabled: true
415
+
416
+ Lint/LiteralAsCondition:
417
+ Enabled: true
418
+
419
+ Lint/LiteralInInterpolation:
420
+ Enabled: true
421
+
422
+ Lint/Loop:
423
+ Enabled: true
424
+
425
+ Lint/MissingCopEnableDirective:
426
+ Enabled: true
427
+ MaximumRangeSize: .inf
428
+
429
+ Lint/MultipleComparison:
430
+ Enabled: true
431
+
432
+ Lint/NestedMethodDefinition:
433
+ Enabled: true
434
+
435
+ Lint/NestedPercentLiteral:
436
+ Enabled: true
437
+
438
+ Lint/NextWithoutAccumulator:
439
+ Enabled: true
440
+
441
+ Lint/NonLocalExitFromIterator:
442
+ Enabled: true
443
+
444
+ Lint/OrderedMagicComments:
445
+ Enabled: true
446
+
447
+ Lint/ParenthesesAsGroupedExpression:
448
+ Enabled: true
449
+
450
+ Lint/PercentSymbolArray:
451
+ Enabled: true
452
+
453
+ Lint/RandOne:
454
+ Enabled: true
455
+
456
+ Lint/RedundantWithIndex:
457
+ Enabled: true
458
+
459
+ Lint/RedundantWithObject:
460
+ Enabled: true
461
+
462
+ Lint/RegexpAsCondition:
463
+ Enabled: true
464
+
465
+ Lint/RequireParentheses:
466
+ Enabled: true
467
+
468
+ Lint/RescueException:
469
+ Enabled: true
470
+
471
+ Lint/RescueType:
472
+ Enabled: true
473
+
474
+ Lint/ReturnInVoidContext:
475
+ Enabled: true
476
+
477
+ Lint/SafeNavigationChain:
478
+ Enabled: true
479
+ AllowedMethods:
480
+ - present?
481
+ - blank?
482
+ - presence
483
+ - try
484
+ - try!
485
+
486
+ Lint/SafeNavigationConsistency:
487
+ Enabled: true
488
+ AllowedMethods:
489
+ - present?
490
+ - blank?
491
+ - presence
492
+ - try
493
+ - try!
494
+
495
+ Lint/ShadowedArgument:
496
+ Enabled: true
497
+ IgnoreImplicitReferences: false
498
+
499
+ Lint/ShadowedException:
500
+ Enabled: true
501
+
502
+ Lint/RedundantStringCoercion:
503
+ Enabled: true
504
+
505
+ Lint/Syntax:
506
+ Enabled: true
507
+
508
+ Lint/UnderscorePrefixedVariableName:
509
+ Enabled: true
510
+
511
+ Lint/UnifiedInteger:
512
+ Enabled: true
513
+
514
+ Lint/RedundantRequireStatement:
515
+ Enabled: true
516
+
517
+ Lint/RedundantSplatExpansion:
518
+ Enabled: true
519
+
520
+ Lint/UnreachableCode:
521
+ Enabled: true
522
+
523
+ Lint/UriEscapeUnescape:
524
+ Enabled: true
525
+
526
+ Lint/UriRegexp:
527
+ Enabled: true
528
+
529
+ Lint/UselessAssignment:
530
+ Enabled: true
531
+
532
+ Lint/UselessSetterCall:
533
+ Enabled: true
534
+
535
+ Lint/Void:
536
+ Enabled: true
537
+ CheckForMethodsWithNoSideEffects: false
538
+
539
+ Naming/AsciiIdentifiers:
540
+ Enabled: true
541
+
542
+ Naming/BinaryOperatorParameterName:
543
+ Enabled: true
544
+
545
+ Naming/ClassAndModuleCamelCase:
546
+ Enabled: true
547
+
548
+ Naming/ConstantName:
549
+ Enabled: true
550
+
551
+ Naming/HeredocDelimiterCase:
552
+ Enabled: true
553
+ EnforcedStyle: uppercase
554
+
555
+ Naming/MethodName:
556
+ Enabled: true
557
+ EnforcedStyle: snake_case
558
+
559
+ Naming/BlockParameterName:
560
+ Enabled: true
561
+ MinNameLength: 1
562
+ AllowNamesEndingInNumbers: true
563
+ AllowedNames: []
564
+ ForbiddenNames: []
565
+
566
+ Naming/VariableName:
567
+ Enabled: true
568
+ EnforcedStyle: snake_case
569
+
570
+ Performance/Caller:
571
+ Enabled: true
572
+
573
+ Performance/CompareWithBlock:
574
+ Enabled: true
575
+
576
+ Performance/Count:
577
+ Enabled: true
578
+
579
+ Performance/Detect:
580
+ Enabled: true
581
+
582
+ Performance/DoubleStartEndWith:
583
+ Enabled: true
584
+ IncludeActiveSupportAliases: false
585
+
586
+ Performance/EndWith:
587
+ Enabled: true
588
+ SafeAutoCorrect: false
589
+ AutoCorrect: false
590
+
591
+ Performance/FixedSize:
592
+ Enabled: true
593
+
594
+ Performance/FlatMap:
595
+ Enabled: true
596
+ EnabledForFlattenWithoutParams: false
597
+
598
+ Performance/InefficientHashSearch:
599
+ Enabled: true
600
+ Safe: false
601
+
602
+ Performance/RangeInclude:
603
+ Enabled: true
604
+ Safe: false
605
+
606
+ Performance/RedundantMatch:
607
+ Enabled: true
608
+
609
+ Performance/RedundantMerge:
610
+ Enabled: true
611
+ MaxKeyValuePairs: 2
612
+
613
+ Performance/RegexpMatch:
614
+ Enabled: true
615
+
616
+ Performance/ReverseEach:
617
+ Enabled: true
618
+
619
+ Performance/Size:
620
+ Enabled: true
621
+
622
+ Performance/StartWith:
623
+ Enabled: true
624
+ SafeAutoCorrect: false
625
+ AutoCorrect: false
626
+
627
+ Performance/StringReplacement:
628
+ Enabled: true
629
+
630
+ Performance/UnfreezeString:
631
+ Enabled: true
632
+
633
+ Performance/UriDefaultParser:
634
+ Enabled: true
635
+
636
+ Security/Eval:
637
+ Enabled: false
638
+
639
+ Security/JSONLoad:
640
+ Enabled: true
641
+ AutoCorrect: false
642
+ SafeAutoCorrect: false
643
+
644
+ Security/Open:
645
+ Enabled: true
646
+ Safe: false
647
+
648
+ Security/YAMLLoad:
649
+ Enabled: true
650
+ SafeAutoCorrect: false
651
+
652
+ Style/FrozenStringLiteralComment:
653
+ Enabled: false
654
+ EnforcedStyle: never
655
+
656
+ Style/Alias:
657
+ Enabled: true
658
+ EnforcedStyle: prefer_alias
659
+
660
+ Style/AndOr:
661
+ Enabled: true
662
+ EnforcedStyle: always
663
+
664
+ Style/ArrayJoin:
665
+ Enabled: true
666
+
667
+ Style/Attr:
668
+ Enabled: true
669
+
670
+ Style/BarePercentLiterals:
671
+ Enabled: true
672
+ EnforcedStyle: bare_percent
673
+
674
+ Style/BeginBlock:
675
+ Enabled: true
676
+
677
+ Style/BlockComments:
678
+ Enabled: true
679
+
680
+ Style/CharacterLiteral:
681
+ Enabled: true
682
+
683
+ Style/ClassCheck:
684
+ Enabled: true
685
+ EnforcedStyle: is_a?
686
+
687
+ Style/ClassMethods:
688
+ Enabled: true
689
+
690
+ #Style/ColonMethodCall:
691
+ # Enabled: true
692
+
693
+ Style/ColonMethodDefinition:
694
+ Enabled: true
695
+
696
+ #Style/CommandLiteral:
697
+ # Enabled: true
698
+ # EnforcedStyle: mixed
699
+ # AllowInnerBackticks: false
700
+
701
+ Style/CommentedKeyword:
702
+ Enabled: true
703
+
704
+ Style/ConditionalAssignment:
705
+ Enabled: false
706
+ EnforcedStyle: assign_inside_condition
707
+ SingleLineConditionsOnly: true
708
+ IncludeTernaryExpressions: true
709
+
710
+ Style/DefWithParentheses:
711
+ Enabled: true
712
+
713
+ Style/Dir:
714
+ Enabled: true
715
+
716
+ Style/EachForSimpleLoop:
717
+ Enabled: true
718
+
719
+ Style/EachWithObject:
720
+ Enabled: true
721
+
722
+ Style/EmptyBlockParameter:
723
+ Enabled: true
724
+
725
+ Style/EmptyCaseCondition:
726
+ Enabled: true
727
+
728
+ Style/EmptyElse:
729
+ Enabled: true
730
+ EnforcedStyle: both
731
+
732
+ Style/EmptyLambdaParameter:
733
+ Enabled: true
734
+
735
+ Style/EmptyLiteral:
736
+ Enabled: true
737
+
738
+ Style/EmptyMethod:
739
+ Enabled: true
740
+ EnforcedStyle: expanded
741
+
742
+ Style/Encoding:
743
+ Enabled: true
744
+
745
+ Style/EndBlock:
746
+ Enabled: true
747
+
748
+ Style/EvalWithLocation:
749
+ Enabled: true
750
+
751
+ Style/For:
752
+ Enabled: true
753
+ EnforcedStyle: each
754
+
755
+ Style/GlobalVars:
756
+ Enabled: true
757
+ AllowedVariables: []
758
+
759
+ Style/HashSyntax:
760
+ Enabled: false
761
+ EnforcedStyle: ruby19_no_mixed_keys
762
+
763
+ Style/IdenticalConditionalBranches:
764
+ Enabled: true
765
+
766
+ Style/IfInsideElse:
767
+ Enabled: true
768
+
769
+ Style/IfUnlessModifierOfIfUnless:
770
+ Enabled: true
771
+
772
+ Style/IfWithSemicolon:
773
+ Enabled: true
774
+
775
+ Style/InfiniteLoop:
776
+ Enabled: true
777
+
778
+ Style/LambdaCall:
779
+ Enabled: true
780
+ EnforcedStyle: call
781
+
782
+ Style/LineEndConcatenation:
783
+ Enabled: true
784
+ SafeAutoCorrect: false
785
+
786
+ Style/MethodCallWithoutArgsParentheses:
787
+ Enabled: true
788
+ AllowedMethods: []
789
+
790
+ Lint/MissingSuper:
791
+ Enabled: false
792
+
793
+ Style/MissingRespondToMissing:
794
+ Enabled: true
795
+
796
+ Style/MixinGrouping:
797
+ Enabled: true
798
+ EnforcedStyle: separated
799
+
800
+ Style/MixinUsage:
801
+ Enabled: true
802
+
803
+ Style/MultilineIfModifier:
804
+ Enabled: true
805
+
806
+ Style/MultilineIfThen:
807
+ Enabled: true
808
+
809
+ Style/MultilineMemoization:
810
+ Enabled: true
811
+ EnforcedStyle: keyword
812
+
813
+ Style/NegatedIf:
814
+ Enabled: true
815
+ EnforcedStyle: both
816
+
817
+ Style/NegatedWhile:
818
+ Enabled: true
819
+
820
+ Style/NestedModifier:
821
+ Enabled: true
822
+
823
+ Style/NestedParenthesizedCalls:
824
+ Enabled: true
825
+ AllowedMethods:
826
+ - be
827
+ - be_a
828
+ - be_an
829
+ - be_between
830
+ - be_falsey
831
+ - be_kind_of
832
+ - be_instance_of
833
+ - be_truthy
834
+ - be_within
835
+ - eq
836
+ - eql
837
+ - end_with
838
+ - include
839
+ - match
840
+ - raise_error
841
+ - respond_to
842
+ - start_with
843
+
844
+ Style/NestedTernaryOperator:
845
+ Enabled: true
846
+
847
+ Style/NilComparison:
848
+ Enabled: true
849
+ EnforcedStyle: predicate
850
+
851
+ Style/NonNilCheck:
852
+ Enabled: true
853
+ IncludeSemanticChanges: false
854
+
855
+ Style/Not:
856
+ Enabled: true
857
+
858
+ Style/NumericLiteralPrefix:
859
+ Enabled: true
860
+ EnforcedOctalStyle: zero_with_o
861
+
862
+ Style/OneLineConditional:
863
+ Enabled: true
864
+
865
+ Style/OptionalArguments:
866
+ Enabled: true
867
+
868
+ Style/OrAssignment:
869
+ Enabled: true
870
+
871
+ Style/ParenthesesAroundCondition:
872
+ Enabled: true
873
+ AllowSafeAssignment: true
874
+ AllowInMultilineConditions: false
875
+
876
+ Style/PercentLiteralDelimiters:
877
+ Enabled: true
878
+ PreferredDelimiters:
879
+ default: ()
880
+ '%i': '[]'
881
+ '%I': '[]'
882
+ '%r': '{}'
883
+ '%w': '[]'
884
+ '%W': '[]'
885
+
886
+ Style/PercentQLiterals:
887
+ Enabled: true
888
+ EnforcedStyle: lower_case_q
889
+
890
+ Style/PreferredHashMethods:
891
+ Enabled: true
892
+ EnforcedStyle: short
893
+
894
+ Style/Proc:
895
+ Enabled: true
896
+
897
+ Style/RandomWithOffset:
898
+ Enabled: true
899
+
900
+ Style/RedundantBegin:
901
+ Enabled: true
902
+
903
+ Style/RedundantConditional:
904
+ Enabled: true
905
+
906
+ Style/RedundantException:
907
+ Enabled: true
908
+
909
+ Style/RedundantFreeze:
910
+ Enabled: true
911
+
912
+ Style/RedundantParentheses:
913
+ Enabled: true
914
+
915
+ Style/RedundantReturn:
916
+ Enabled: true
917
+ AllowMultipleReturnValues: false
918
+
919
+ Style/RedundantSelf:
920
+ Enabled: true
921
+
922
+ Style/RedundantSortBy:
923
+ Enabled: true
924
+
925
+ Style/RescueModifier:
926
+ Enabled: false
927
+
928
+ Style/RescueStandardError:
929
+ Enabled: true
930
+ EnforcedStyle: implicit
931
+
932
+ Style/SafeNavigation:
933
+ Enabled: true
934
+ ConvertCodeThatCanStartToReturnNil: false
935
+ AllowedMethods:
936
+ - present?
937
+ - blank?
938
+ - presence
939
+ - try
940
+ - try!
941
+
942
+ Style/Sample:
943
+ Enabled: true
944
+
945
+ Style/SelfAssignment:
946
+ Enabled: true
947
+
948
+ Style/Semicolon:
949
+ Enabled: true
950
+ AllowAsExpressionSeparator: false
951
+
952
+ Style/SingleLineMethods:
953
+ Enabled: true
954
+ AllowIfMethodIsEmpty: false
955
+
956
+ Style/StabbyLambdaParentheses:
957
+ Enabled: true
958
+ EnforcedStyle: require_parentheses
959
+
960
+ Style/StderrPuts:
961
+ Enabled: true
962
+
963
+ Style/StringLiterals:
964
+ Enabled: true
965
+ EnforcedStyle: single_quotes
966
+ ConsistentQuotesInMultiline: false
967
+
968
+ Style/StringLiteralsInInterpolation:
969
+ Enabled: true
970
+ EnforcedStyle: single_quotes
971
+
972
+ Style/Strip:
973
+ Enabled: true
974
+
975
+ Style/SymbolLiteral:
976
+ Enabled: true
977
+
978
+ Style/TernaryParentheses:
979
+ Enabled: true
980
+ EnforcedStyle: require_no_parentheses
981
+ AllowSafeAssignment: true
982
+
983
+ Style/TrailingBodyOnClass:
984
+ Enabled: true
985
+
986
+ Style/TrailingBodyOnMethodDefinition:
987
+ Enabled: true
988
+
989
+ Style/TrailingBodyOnModule:
990
+ Enabled: true
991
+
992
+ Style/TrailingCommaInArrayLiteral:
993
+ Enabled: true
994
+ EnforcedStyleForMultiline: no_comma
995
+
996
+ Style/TrailingCommaInHashLiteral:
997
+ Enabled: true
998
+ EnforcedStyleForMultiline: no_comma
999
+
1000
+ Style/TrailingMethodEndStatement:
1001
+ Enabled: true
1002
+
1003
+ Style/TrivialAccessors:
1004
+ Enabled: true
1005
+ ExactNameMatch: true
1006
+ AllowPredicates: true
1007
+ AllowDSLWriters: false
1008
+ IgnoreClassMethods: false
1009
+ AllowedMethods:
1010
+ - to_ary
1011
+ - to_a
1012
+ - to_c
1013
+ - to_enum
1014
+ - to_h
1015
+ - to_hash
1016
+ - to_i
1017
+ - to_int
1018
+ - to_io
1019
+ - to_open
1020
+ - to_path
1021
+ - to_proc
1022
+ - to_r
1023
+ - to_regexp
1024
+ - to_str
1025
+ - to_s
1026
+ - to_sym
1027
+
1028
+ Style/UnlessElse:
1029
+ Enabled: true
1030
+
1031
+ Style/RedundantCapitalW:
1032
+ Enabled: true
1033
+
1034
+ Style/RedundantCondition:
1035
+ Enabled: true
1036
+
1037
+ Style/RedundantInterpolation:
1038
+ Enabled: true
1039
+
1040
+ Style/RedundantPercentQ:
1041
+ Enabled: true
1042
+
1043
+ Style/RedundantSort:
1044
+ Enabled: true
1045
+
1046
+ Style/UnpackFirst:
1047
+ Enabled: true
1048
+
1049
+ Style/VariableInterpolation:
1050
+ Enabled: true
1051
+
1052
+ Style/WhenThen:
1053
+ Enabled: true
1054
+
1055
+ Style/WhileUntilDo:
1056
+ Enabled: true
1057
+
1058
+ Style/YodaCondition:
1059
+ Enabled: true
1060
+ EnforcedStyle: forbid_for_all_comparison_operators
1061
+
1062
+ ####Style
1063
+
1064
+ # Timeout.timeout(500) { "oke" }, not Timeout::timeout(500) { "oke" }
1065
+ Style/ColonMethodCall:
1066
+ Enabled: true
1067
+
1068
+ Style/CommandLiteral:
1069
+ EnforcedStyle: backticks
1070
+ AllowInnerBackticks: false
1071
+
1072
+ # Time.iso8601('2016-06-29'), not DateTime.iso8601('2016-06-29')
1073
+ Style/ConstantVisibility:
1074
+ Enabled: true
1075
+
1076
+ Style/ClassAndModuleChildren:
1077
+ Enabled: false
1078
+
1079
+ Style/Documentation:
1080
+ Enabled: false
1081
+
1082
+ Style/ClassVars:
1083
+ Enabled: false
1084
+
1085
+ #Style/GuardClause:
1086
+ # Enabled: true
1087
+
1088
+ Metrics/BlockLength:
1089
+ Enabled: false
1090
+
1091
+ Metrics/MethodLength:
1092
+ Enabled: false
1093
+
1094
+ Metrics/PerceivedComplexity:
1095
+ Enabled: false
1096
+
1097
+ Metrics/AbcSize:
1098
+ Enabled: false
1099
+
1100
+ Metrics/ClassLength:
1101
+ Enabled: false
1102
+
1103
+ Metrics/CyclomaticComplexity:
1104
+ Enabled: false
1105
+
1106
+ Naming/AccessorMethodName:
1107
+ Enabled: false
1108
+
1109
+ Naming/MethodParameterName:
1110
+ Enabled: true
1111
+ MinNameLength: 1
1112
+ AllowedNames:
1113
+ - _
1114
+
1115
+ Layout/ClassStructure:
1116
+ Enabled: true
1117
+