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