rewind-ruby-style 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/reek.yml +21 -0
  3. data/rubocop.yml +1030 -0
  4. metadata +67 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: d12f1e492666323975135623344b3cd17411f2c38c92010f97df58eb671e58e7
4
+ data.tar.gz: 42c92effe05b5027899eceda7c0ecbba158c88984e34fb87079fa7c4d0d58882
5
+ SHA512:
6
+ metadata.gz: e7f07b3737ae12c1448347b21f60199846b37f7f290d558c464f27950ee33b84691adc25c17150795a7c885dc937c48cedc4fa22efab0257527e6391680a40a3
7
+ data.tar.gz: 7171b91aaf0e02ef665f7a05996edf11e566e85b98ccbe3b6cd0b746d8437b2bfb615c9c5c7fb7f8928656c3691394e2d49129b5462efb52458e26fc4a7c0a1d
@@ -0,0 +1,21 @@
1
+ directories:
2
+ "app/controllers":
3
+ IrresponsibleModule:
4
+ enabled: false
5
+ NestedIterators:
6
+ max_allowed_nesting: 2
7
+ UnusedPrivateMethod:
8
+ enabled: false
9
+ InstanceVariableAssumption:
10
+ enabled: false
11
+ "app/helpers":
12
+ IrresponsibleModule:
13
+ enabled: false
14
+ UtilityFunction:
15
+ enabled: false
16
+ "app/mailers":
17
+ InstanceVariableAssumption:
18
+ enabled: false
19
+ "app/models":
20
+ InstanceVariableAssumption:
21
+ enabled: false
@@ -0,0 +1,1030 @@
1
+ AllCops:
2
+ DisplayCopNames: true
3
+ TargetRubyVersion: 2.6
4
+ StyleGuideBaseURL: https://github.com/rewindio/ruby-style-configs/
5
+ Exclude:
6
+ - '.ebextenstions/**/*'
7
+ - '.git/**/*'
8
+ - 'bin/**/*'
9
+ - 'certs/**/*'
10
+ - 'db/**/*'
11
+ - 'log/**/*'
12
+ - 'tmp/**/*'
13
+ - 'vendor/**/*'
14
+ DisabledByDefault: true
15
+
16
+ Lint/AssignmentInCondition:
17
+ Enabled: true
18
+
19
+ Layout/AccessModifierIndentation:
20
+ EnforcedStyle: indent
21
+ SupportedStyles:
22
+ - outdent
23
+ - indent
24
+ IndentationWidth:
25
+
26
+ Style/Alias:
27
+ EnforcedStyle: prefer_alias_method
28
+ SupportedStyles:
29
+ - prefer_alias
30
+ - prefer_alias_method
31
+
32
+ Layout/HashAlignment:
33
+ EnforcedHashRocketStyle: key
34
+ EnforcedColonStyle: key
35
+ EnforcedLastArgumentHashStyle: ignore_implicit
36
+ SupportedLastArgumentHashStyles:
37
+ - always_inspect
38
+ - always_ignore
39
+ - ignore_implicit
40
+ - ignore_explicit
41
+
42
+ Layout/ParameterAlignment:
43
+ EnforcedStyle: with_fixed_indentation
44
+ SupportedStyles:
45
+ - with_first_parameter
46
+ - with_fixed_indentation
47
+ IndentationWidth:
48
+
49
+ Style/AndOr:
50
+ EnforcedStyle: always
51
+ SupportedStyles:
52
+ - always
53
+ - conditionals
54
+
55
+ Style/BarePercentLiterals:
56
+ EnforcedStyle: bare_percent
57
+ SupportedStyles:
58
+ - percent_q
59
+ - bare_percent
60
+
61
+ Style/BlockDelimiters:
62
+ EnforcedStyle: line_count_based
63
+ SupportedStyles:
64
+ - line_count_based
65
+ - semantic
66
+ - braces_for_chaining
67
+ ProceduralMethods:
68
+ - benchmark
69
+ - bm
70
+ - bmbm
71
+ - create
72
+ - each_with_object
73
+ - measure
74
+ - new
75
+ - realtime
76
+ - tap
77
+ - with_object
78
+ FunctionalMethods:
79
+ - let
80
+ - let!
81
+ - subject
82
+ - watch
83
+ IgnoredMethods:
84
+ - lambda
85
+ - proc
86
+ - it
87
+
88
+ Layout/CaseIndentation:
89
+ EnforcedStyle: end
90
+ SupportedStyles:
91
+ - case
92
+ - end
93
+ IndentOneStep: false
94
+ IndentationWidth:
95
+
96
+ Style/ClassAndModuleChildren:
97
+ EnforcedStyle: nested
98
+ SupportedStyles:
99
+ - nested
100
+ - compact
101
+
102
+ Style/ClassCheck:
103
+ EnforcedStyle: is_a?
104
+ SupportedStyles:
105
+ - is_a?
106
+ - kind_of?
107
+
108
+ Style/CommandLiteral:
109
+ EnforcedStyle: percent_x
110
+ SupportedStyles:
111
+ - backticks
112
+ - percent_x
113
+ - mixed
114
+ AllowInnerBackticks: false
115
+
116
+ Style/CommentAnnotation:
117
+ Keywords:
118
+ - TODO
119
+ - FIXME
120
+ - OPTIMIZE
121
+ - HACK
122
+ - REVIEW
123
+
124
+ Style/ConditionalAssignment:
125
+ EnforcedStyle: assign_to_condition
126
+ SupportedStyles:
127
+ - assign_to_condition
128
+ - assign_inside_condition
129
+ SingleLineConditionsOnly: true
130
+
131
+ Layout/DotPosition:
132
+ EnforcedStyle: leading
133
+ SupportedStyles:
134
+ - leading
135
+ - trailing
136
+
137
+ Style/EmptyElse:
138
+ EnforcedStyle: both
139
+ SupportedStyles:
140
+ - empty
141
+ - nil
142
+ - both
143
+
144
+ Layout/EmptyLineBetweenDefs:
145
+ AllowAdjacentOneLineDefs: false
146
+
147
+ Layout/EmptyLinesAroundBlockBody:
148
+ EnforcedStyle: no_empty_lines
149
+ SupportedStyles:
150
+ - empty_lines
151
+ - no_empty_lines
152
+
153
+ Layout/EmptyLinesAroundClassBody:
154
+ EnforcedStyle: no_empty_lines
155
+ SupportedStyles:
156
+ - empty_lines
157
+ - empty_lines_except_namespace
158
+ - no_empty_lines
159
+
160
+ Layout/EmptyLinesAroundModuleBody:
161
+ EnforcedStyle: no_empty_lines
162
+ SupportedStyles:
163
+ - empty_lines
164
+ - empty_lines_except_namespace
165
+ - no_empty_lines
166
+
167
+ Layout/ExtraSpacing:
168
+ AllowForAlignment: true
169
+ ForceEqualSignAlignment: false
170
+
171
+ Naming/FileName:
172
+ Exclude: []
173
+ ExpectMatchingDefinition: false
174
+ Regex:
175
+ IgnoreExecutableScripts: true
176
+
177
+ Layout/FirstArgumentIndentation:
178
+ EnforcedStyle: consistent
179
+ SupportedStyles:
180
+ - consistent
181
+ - special_for_inner_method_call
182
+ - special_for_inner_method_call_in_parentheses
183
+ IndentationWidth:
184
+
185
+ Style/For:
186
+ EnforcedStyle: each
187
+ SupportedStyles:
188
+ - for
189
+ - each
190
+
191
+ Style/FormatString:
192
+ EnforcedStyle: format
193
+ SupportedStyles:
194
+ - format
195
+ - sprintf
196
+ - percent
197
+
198
+ Style/FrozenStringLiteralComment:
199
+ Details: >-
200
+ Add `# frozen_string_literal: true` to the top of the file. Frozen string
201
+ literals will become the default in a future Ruby version, and we want to
202
+ make sure we're ready.
203
+ EnforcedStyle: always
204
+ SupportedStyles:
205
+ - always
206
+ - never
207
+
208
+ Style/GlobalVars:
209
+ AllowedVariables: []
210
+
211
+ Style/HashSyntax:
212
+ EnforcedStyle: ruby19
213
+ SupportedStyles:
214
+ - ruby19
215
+ - hash_rockets
216
+ - no_mixed_keys
217
+ - ruby19_no_mixed_keys
218
+ UseHashRocketsWithSymbolValues: false
219
+ PreferHashRocketsForNonAlnumEndingSymbols: false
220
+
221
+ Layout/IndentationConsistency:
222
+ EnforcedStyle: normal
223
+ SupportedStyles:
224
+ - normal
225
+ - rails
226
+
227
+ Layout/IndentationWidth:
228
+ Width: 2
229
+
230
+ Layout/FirstArrayElementIndentation:
231
+ EnforcedStyle: consistent
232
+ SupportedStyles:
233
+ - special_inside_parentheses
234
+ - consistent
235
+ - align_brackets
236
+ IndentationWidth:
237
+
238
+ Layout/AssignmentIndentation:
239
+ IndentationWidth:
240
+
241
+ Layout/FirstHashElementIndentation:
242
+ EnforcedStyle: consistent
243
+ SupportedStyles:
244
+ - special_inside_parentheses
245
+ - consistent
246
+ - align_braces
247
+ IndentationWidth:
248
+
249
+ Style/LambdaCall:
250
+ EnforcedStyle: call
251
+ SupportedStyles:
252
+ - call
253
+ - braces
254
+
255
+ Style/Next:
256
+ EnforcedStyle: skip_modifier_ifs
257
+ MinBodyLength: 3
258
+ SupportedStyles:
259
+ - skip_modifier_ifs
260
+ - always
261
+
262
+ Style/NonNilCheck:
263
+ IncludeSemanticChanges: false
264
+
265
+ Style/MethodCallWithArgsParentheses:
266
+ Enabled: true
267
+ IgnoreMacros: true
268
+ IgnoredMethods:
269
+ - require
270
+ - require_relative
271
+ - require_dependency
272
+ - yield
273
+ - raise
274
+ - puts
275
+ Exclude:
276
+ - Gemfile
277
+
278
+ Style/MethodDefParentheses:
279
+ EnforcedStyle: require_parentheses
280
+ SupportedStyles:
281
+ - require_parentheses
282
+ - require_no_parentheses
283
+ - require_no_parentheses_except_multiline
284
+
285
+ Naming/MethodName:
286
+ EnforcedStyle: snake_case
287
+ SupportedStyles:
288
+ - snake_case
289
+ - camelCase
290
+
291
+ Layout/MultilineArrayBraceLayout:
292
+ EnforcedStyle: symmetrical
293
+ SupportedStyles:
294
+ - symmetrical
295
+ - new_line
296
+ - same_line
297
+
298
+ Layout/MultilineHashBraceLayout:
299
+ EnforcedStyle: symmetrical
300
+ SupportedStyles:
301
+ - symmetrical
302
+ - new_line
303
+ - same_line
304
+
305
+ Layout/MultilineMethodCallBraceLayout:
306
+ EnforcedStyle: symmetrical
307
+ SupportedStyles:
308
+ - symmetrical
309
+ - new_line
310
+ - same_line
311
+
312
+ Layout/MultilineMethodCallIndentation:
313
+ EnforcedStyle: indented
314
+ SupportedStyles:
315
+ - aligned
316
+ - indented
317
+ - indented_relative_to_receiver
318
+ IndentationWidth: 2
319
+
320
+ Layout/MultilineMethodDefinitionBraceLayout:
321
+ EnforcedStyle: symmetrical
322
+ SupportedStyles:
323
+ - symmetrical
324
+ - new_line
325
+ - same_line
326
+
327
+ Style/NumericLiteralPrefix:
328
+ EnforcedOctalStyle: zero_only
329
+ SupportedOctalStyles:
330
+ - zero_with_o
331
+ - zero_only
332
+
333
+ Style/ParenthesesAroundCondition:
334
+ AllowSafeAssignment: true
335
+
336
+ Style/PercentQLiterals:
337
+ EnforcedStyle: lower_case_q
338
+ SupportedStyles:
339
+ - lower_case_q
340
+ - upper_case_q
341
+
342
+ Naming/PredicateName:
343
+ NamePrefix:
344
+ - is_
345
+ ForbiddenPrefixes:
346
+ - is_
347
+ AllowedMethods:
348
+ - is_a?
349
+ Exclude:
350
+ - 'spec/**/*'
351
+
352
+ Style/PreferredHashMethods:
353
+ EnforcedStyle: short
354
+ SupportedStyles:
355
+ - short
356
+ - verbose
357
+
358
+ Style/RaiseArgs:
359
+ EnforcedStyle: exploded
360
+ SupportedStyles:
361
+ - compact
362
+ - exploded
363
+
364
+ Style/RedundantReturn:
365
+ AllowMultipleReturnValues: false
366
+
367
+ Style/RegexpLiteral:
368
+ EnforcedStyle: mixed
369
+ SupportedStyles:
370
+ - slashes
371
+ - percent_r
372
+ - mixed
373
+ AllowInnerSlashes: false
374
+
375
+ Style/SafeNavigation:
376
+ ConvertCodeThatCanStartToReturnNil: false
377
+ Enabled: true
378
+
379
+ Lint/SafeNavigationChain:
380
+ Enabled: true
381
+
382
+ Style/Semicolon:
383
+ AllowAsExpressionSeparator: false
384
+
385
+ Style/SignalException:
386
+ EnforcedStyle: only_raise
387
+ SupportedStyles:
388
+ - only_raise
389
+ - only_fail
390
+ - semantic
391
+
392
+ Style/SingleLineMethods:
393
+ AllowIfMethodIsEmpty: true
394
+
395
+ Layout/SpaceBeforeFirstArg:
396
+ AllowForAlignment: true
397
+
398
+ Style/SpecialGlobalVars:
399
+ EnforcedStyle: use_english_names
400
+ SupportedStyles:
401
+ - use_perl_names
402
+ - use_english_names
403
+
404
+ Style/StabbyLambdaParentheses:
405
+ EnforcedStyle: require_parentheses
406
+ SupportedStyles:
407
+ - require_parentheses
408
+ - require_no_parentheses
409
+
410
+ Style/StringLiteralsInInterpolation:
411
+ EnforcedStyle: single_quotes
412
+ SupportedStyles:
413
+ - single_quotes
414
+ - double_quotes
415
+
416
+ Layout/SpaceAroundBlockParameters:
417
+ EnforcedStyleInsidePipes: no_space
418
+ SupportedStylesInsidePipes:
419
+ - space
420
+ - no_space
421
+
422
+ Layout/SpaceAroundEqualsInParameterDefault:
423
+ EnforcedStyle: space
424
+ SupportedStyles:
425
+ - space
426
+ - no_space
427
+
428
+ Layout/SpaceAroundOperators:
429
+ AllowForAlignment: true
430
+
431
+ Layout/SpaceBeforeBlockBraces:
432
+ EnforcedStyle: space
433
+ EnforcedStyleForEmptyBraces: space
434
+ SupportedStyles:
435
+ - space
436
+ - no_space
437
+
438
+ Layout/SpaceInsideBlockBraces:
439
+ EnforcedStyle: space
440
+ SupportedStyles:
441
+ - space
442
+ - no_space
443
+ EnforcedStyleForEmptyBraces: no_space
444
+ SpaceBeforeBlockParameters: true
445
+
446
+ Layout/SpaceInsideHashLiteralBraces:
447
+ EnforcedStyle: space
448
+ EnforcedStyleForEmptyBraces: no_space
449
+ SupportedStyles:
450
+ - space
451
+ - no_space
452
+ - compact
453
+
454
+ Layout/SpaceInsideStringInterpolation:
455
+ EnforcedStyle: no_space
456
+ SupportedStyles:
457
+ - space
458
+ - no_space
459
+
460
+ Style/SymbolProc:
461
+ IgnoredMethods:
462
+ - respond_to
463
+ - define_method
464
+
465
+ Style/TernaryParentheses:
466
+ EnforcedStyle: require_no_parentheses
467
+ SupportedStyles:
468
+ - require_parentheses
469
+ - require_no_parentheses
470
+ AllowSafeAssignment: true
471
+
472
+ Layout/TrailingEmptyLines:
473
+ EnforcedStyle: final_newline
474
+ SupportedStyles:
475
+ - final_newline
476
+ - final_blank_line
477
+
478
+ Style/TrivialAccessors:
479
+ ExactNameMatch: true
480
+ AllowPredicates: true
481
+ AllowDSLWriters: false
482
+ IgnoreClassMethods: false
483
+ AllowedMethods:
484
+ - to_ary
485
+ - to_a
486
+ - to_c
487
+ - to_enum
488
+ - to_h
489
+ - to_hash
490
+ - to_i
491
+ - to_int
492
+ - to_io
493
+ - to_open
494
+ - to_path
495
+ - to_proc
496
+ - to_r
497
+ - to_regexp
498
+ - to_str
499
+ - to_s
500
+ - to_sym
501
+
502
+ Naming/VariableName:
503
+ EnforcedStyle: snake_case
504
+ SupportedStyles:
505
+ - snake_case
506
+ - camelCase
507
+
508
+ Style/WhileUntilModifier:
509
+ Enabled: true
510
+
511
+ Metrics/BlockNesting:
512
+ Max: 3
513
+
514
+ Layout/LineLength:
515
+ Max: 120
516
+ AllowHeredoc: true
517
+ AllowURI: true
518
+ URISchemes:
519
+ - http
520
+ - https
521
+ IgnoreCopDirectives: false
522
+ IgnoredPatterns:
523
+ - '\A\s*(remote_)?test(_\w+)?\s.*(do|->)(\s|\Z)'
524
+
525
+ Metrics/ParameterLists:
526
+ Max: 5
527
+ CountKeywordArgs: false
528
+
529
+ Layout/BlockAlignment:
530
+ EnforcedStyleAlignWith: either
531
+ SupportedStylesAlignWith:
532
+ - either
533
+ - start_of_block
534
+ - start_of_line
535
+
536
+ Layout/EndAlignment:
537
+ EnforcedStyleAlignWith: variable
538
+ SupportedStylesAlignWith:
539
+ - keyword
540
+ - variable
541
+ - start_of_line
542
+
543
+ Layout/DefEndAlignment:
544
+ EnforcedStyleAlignWith: start_of_line
545
+ SupportedStylesAlignWith:
546
+ - start_of_line
547
+ - def
548
+
549
+ Lint/InheritException:
550
+ EnforcedStyle: runtime_error
551
+ SupportedStyles:
552
+ - runtime_error
553
+ - standard_error
554
+
555
+ Lint/UnusedBlockArgument:
556
+ IgnoreEmptyBlocks: true
557
+ AllowUnusedKeywordArguments: false
558
+
559
+ Lint/UnusedMethodArgument:
560
+ AllowUnusedKeywordArguments: false
561
+ IgnoreEmptyMethods: true
562
+
563
+ Naming/AccessorMethodName:
564
+ Enabled: true
565
+
566
+ Layout/ArrayAlignment:
567
+ Enabled: true
568
+
569
+ Style/ArrayJoin:
570
+ Enabled: true
571
+
572
+ Naming/AsciiIdentifiers:
573
+ Enabled: true
574
+
575
+ Style/Attr:
576
+ Enabled: true
577
+
578
+ Style/BeginBlock:
579
+ Enabled: true
580
+
581
+ Style/BlockComments:
582
+ Enabled: true
583
+
584
+ Layout/BlockEndNewline:
585
+ Enabled: true
586
+
587
+ Style/CaseEquality:
588
+ Enabled: true
589
+ AllowOnConstant: true
590
+
591
+ Style/CharacterLiteral:
592
+ Enabled: true
593
+
594
+ Naming/ClassAndModuleCamelCase:
595
+ Enabled: true
596
+
597
+ Style/ClassMethods:
598
+ Enabled: true
599
+
600
+ Style/ClassVars:
601
+ Enabled: true
602
+
603
+ Layout/ClosingParenthesisIndentation:
604
+ Enabled: true
605
+
606
+ Style/ColonMethodCall:
607
+ Enabled: true
608
+
609
+ Layout/CommentIndentation:
610
+ Enabled: true
611
+
612
+ Naming/ConstantName:
613
+ Enabled: true
614
+
615
+ Style/DateTime:
616
+ Enabled: true
617
+
618
+ Style/DefWithParentheses:
619
+ Enabled: true
620
+
621
+ Style/EachForSimpleLoop:
622
+ Enabled: true
623
+
624
+ Style/EachWithObject:
625
+ Enabled: true
626
+
627
+ Layout/ElseAlignment:
628
+ Enabled: true
629
+
630
+ Style/EmptyCaseCondition:
631
+ Enabled: true
632
+
633
+ Layout/EmptyLines:
634
+ Enabled: true
635
+
636
+ Layout/EmptyLinesAroundAccessModifier:
637
+ Enabled: true
638
+
639
+ Layout/EmptyLinesAroundMethodBody:
640
+ Enabled: true
641
+
642
+ Style/EmptyLiteral:
643
+ Enabled: true
644
+
645
+ Style/EndBlock:
646
+ Enabled: true
647
+
648
+ Layout/EndOfLine:
649
+ Enabled: true
650
+
651
+ Style/EvenOdd:
652
+ Enabled: true
653
+
654
+ Layout/InitialIndentation:
655
+ Enabled: true
656
+
657
+ Lint/FlipFlop:
658
+ Enabled: true
659
+
660
+ Style/IfInsideElse:
661
+ Enabled: true
662
+
663
+ Style/IfUnlessModifierOfIfUnless:
664
+ Enabled: true
665
+
666
+ Style/IfWithSemicolon:
667
+ Enabled: true
668
+
669
+ Style/IdenticalConditionalBranches:
670
+ Enabled: true
671
+
672
+ Layout/IndentationStyle:
673
+ Enabled: true
674
+
675
+ Style/InfiniteLoop:
676
+ Enabled: true
677
+
678
+ Layout/LeadingCommentSpace:
679
+ Enabled: true
680
+
681
+ Style/LineEndConcatenation:
682
+ Enabled: true
683
+
684
+ Style/MethodCallWithoutArgsParentheses:
685
+ Enabled: true
686
+
687
+ Style/MethodMissingSuper:
688
+ Enabled: true
689
+
690
+ Style/MissingRespondToMissing:
691
+ Enabled: true
692
+
693
+ Layout/MultilineBlockLayout:
694
+ Enabled: true
695
+
696
+ Style/MultilineIfThen:
697
+ Enabled: true
698
+
699
+ Style/MultilineMemoization:
700
+ Enabled: true
701
+
702
+ Style/MultilineTernaryOperator:
703
+ Enabled: true
704
+
705
+ Style/NegatedIf:
706
+ Enabled: true
707
+
708
+ Style/NegatedWhile:
709
+ Enabled: true
710
+
711
+ Style/NestedModifier:
712
+ Enabled: true
713
+
714
+ Style/NestedParenthesizedCalls:
715
+ Enabled: true
716
+
717
+ Style/NestedTernaryOperator:
718
+ Enabled: true
719
+
720
+ Style/NilComparison:
721
+ Enabled: true
722
+
723
+ Style/Not:
724
+ Enabled: true
725
+
726
+ Style/OneLineConditional:
727
+ Enabled: true
728
+
729
+ Naming/BinaryOperatorParameterName:
730
+ Enabled: true
731
+
732
+ Style/OptionalArguments:
733
+ Enabled: true
734
+
735
+ Style/ParallelAssignment:
736
+ Enabled: true
737
+
738
+ Style/PerlBackrefs:
739
+ Enabled: true
740
+
741
+ Style/Proc:
742
+ Enabled: true
743
+
744
+ Style/RedundantBegin:
745
+ Enabled: true
746
+
747
+ Style/RedundantException:
748
+ Enabled: true
749
+
750
+ Style/RedundantFreeze:
751
+ Enabled: true
752
+
753
+ Style/RedundantParentheses:
754
+ Enabled: true
755
+
756
+ Style/RedundantSelf:
757
+ Enabled: true
758
+
759
+ Style/RedundantSortBy:
760
+ Enabled: true
761
+
762
+ Layout/RescueEnsureAlignment:
763
+ Enabled: true
764
+
765
+ Style/RescueModifier:
766
+ Enabled: true
767
+
768
+ Style/Sample:
769
+ Enabled: true
770
+
771
+ Style/SelfAssignment:
772
+ Enabled: true
773
+
774
+ Layout/SpaceAfterColon:
775
+ Enabled: true
776
+
777
+ Layout/SpaceAfterComma:
778
+ Enabled: true
779
+
780
+ Layout/SpaceAfterMethodName:
781
+ Enabled: true
782
+
783
+ Layout/SpaceAfterNot:
784
+ Enabled: true
785
+
786
+ Layout/SpaceAfterSemicolon:
787
+ Enabled: true
788
+
789
+ Layout/SpaceBeforeComma:
790
+ Enabled: true
791
+
792
+ Layout/SpaceBeforeComment:
793
+ Enabled: true
794
+
795
+ Layout/SpaceBeforeSemicolon:
796
+ Enabled: true
797
+
798
+ Layout/SpaceAroundKeyword:
799
+ Enabled: true
800
+
801
+ Layout/SpaceInsideArrayPercentLiteral:
802
+ Enabled: true
803
+
804
+ Layout/SpaceInsidePercentLiteralDelimiters:
805
+ Enabled: true
806
+
807
+ Layout/SpaceInsideArrayLiteralBrackets:
808
+ Enabled: true
809
+
810
+ Layout/SpaceInsideParens:
811
+ Enabled: true
812
+
813
+ Layout/SpaceInsideRangeLiteral:
814
+ Enabled: true
815
+
816
+ Style/SymbolLiteral:
817
+ Enabled: true
818
+
819
+ Layout/TrailingWhitespace:
820
+ Enabled: true
821
+
822
+ Style/UnlessElse:
823
+ Enabled: true
824
+
825
+ Style/RedundantCapitalW:
826
+ Enabled: true
827
+
828
+ Style/RedundantInterpolation:
829
+ Enabled: true
830
+
831
+ Style/RedundantPercentQ:
832
+ Enabled: true
833
+
834
+ Style/VariableInterpolation:
835
+ Enabled: true
836
+
837
+ Style/WhenThen:
838
+ Enabled: true
839
+
840
+ Style/WhileUntilDo:
841
+ Enabled: true
842
+
843
+ Style/ZeroLengthPredicate:
844
+ Enabled: true
845
+
846
+ Layout/HeredocIndentation:
847
+ Enabled: true
848
+
849
+ Lint/AmbiguousOperator:
850
+ Enabled: true
851
+
852
+ Lint/AmbiguousRegexpLiteral:
853
+ Enabled: true
854
+
855
+ Lint/CircularArgumentReference:
856
+ Enabled: true
857
+
858
+ Layout/ConditionPosition:
859
+ Enabled: true
860
+
861
+ Lint/Debugger:
862
+ Enabled: true
863
+
864
+ Lint/DeprecatedClassMethods:
865
+ Enabled: true
866
+
867
+ Lint/DuplicateMethods:
868
+ Enabled: true
869
+
870
+ Lint/DuplicateHashKey:
871
+ Enabled: true
872
+
873
+ Lint/EachWithObjectArgument:
874
+ Enabled: true
875
+
876
+ Lint/ElseLayout:
877
+ Enabled: true
878
+
879
+ Lint/EmptyEnsure:
880
+ Enabled: true
881
+
882
+ Lint/EmptyInterpolation:
883
+ Enabled: true
884
+
885
+ Lint/EnsureReturn:
886
+ Enabled: true
887
+
888
+ Lint/FloatOutOfRange:
889
+ Enabled: true
890
+
891
+ Lint/FormatParameterMismatch:
892
+ Enabled: true
893
+
894
+ Lint/SuppressedException:
895
+ AllowComments: true
896
+
897
+ Lint/ImplicitStringConcatenation:
898
+ Description: Checks for adjacent string literals on the same line, which could
899
+ better be represented as a single string literal.
900
+
901
+ Lint/IneffectiveAccessModifier:
902
+ Description: Checks for attempts to use `private` or `protected` to set the visibility
903
+ of a class method, which does not work.
904
+
905
+ Lint/LiteralAsCondition:
906
+ Enabled: true
907
+
908
+ Lint/LiteralInInterpolation:
909
+ Enabled: true
910
+
911
+ Lint/Loop:
912
+ Description: Use Kernel#loop with break rather than begin/end/until or begin/end/while
913
+ for post-loop tests.
914
+
915
+ Lint/NestedMethodDefinition:
916
+ Enabled: true
917
+
918
+ Lint/NextWithoutAccumulator:
919
+ Description: Do not omit the accumulator when calling `next` in a `reduce`/`inject`
920
+ block.
921
+
922
+ Lint/NonLocalExitFromIterator:
923
+ Enabled: true
924
+
925
+ Lint/ParenthesesAsGroupedExpression:
926
+ Enabled: true
927
+
928
+ Lint/PercentStringArray:
929
+ Enabled: true
930
+
931
+ Lint/PercentSymbolArray:
932
+ Enabled: true
933
+
934
+ Lint/RandOne:
935
+ Description: Checks for `rand(1)` calls. Such calls always return `0` and most
936
+ likely a mistake.
937
+
938
+ Lint/RequireParentheses:
939
+ Enabled: true
940
+
941
+ Lint/RescueException:
942
+ Enabled: true
943
+
944
+ Lint/ShadowedException:
945
+ Enabled: true
946
+
947
+ Lint/ShadowingOuterLocalVariable:
948
+ Enabled: true
949
+
950
+ Lint/RedundantStringCoercion:
951
+ Enabled: true
952
+
953
+ Lint/UnderscorePrefixedVariableName:
954
+ Enabled: true
955
+
956
+ Lint/UnifiedInteger:
957
+ Enabled: true
958
+
959
+ Lint/RedundantCopDisableDirective:
960
+ Enabled: true
961
+
962
+ Lint/RedundantCopEnableDirective:
963
+ Enabled: true
964
+
965
+ Lint/RedundantSplatExpansion:
966
+ Enabled: true
967
+
968
+ Lint/UnreachableCode:
969
+ Enabled: true
970
+
971
+ Lint/UselessAccessModifier:
972
+ ContextCreatingMethods: []
973
+
974
+ Lint/UselessAssignment:
975
+ Enabled: true
976
+
977
+ Lint/UselessComparison:
978
+ Enabled: true
979
+
980
+ Lint/UselessElseWithoutRescue:
981
+ Enabled: true
982
+
983
+ Lint/UselessSetterCall:
984
+ Enabled: true
985
+
986
+ Lint/Void:
987
+ Enabled: true
988
+
989
+ Security/Eval:
990
+ Enabled: true
991
+
992
+ Security/JSONLoad:
993
+ Enabled: true
994
+
995
+ Security/Open:
996
+ Enabled: true
997
+
998
+ Lint/BigDecimalNew:
999
+ Enabled: true
1000
+
1001
+ Style/Strip:
1002
+ Enabled: true
1003
+
1004
+ Style/TrailingBodyOnClass:
1005
+ Enabled: true
1006
+
1007
+ Style/TrailingBodyOnModule:
1008
+ Enabled: true
1009
+
1010
+ Style/TrailingCommaInArrayLiteral:
1011
+ EnforcedStyleForMultiline: comma
1012
+ Enabled: true
1013
+
1014
+ Style/TrailingCommaInHashLiteral:
1015
+ EnforcedStyleForMultiline: comma
1016
+ Enabled: true
1017
+
1018
+ Layout/SpaceInsideReferenceBrackets:
1019
+ EnforcedStyle: no_space
1020
+ EnforcedStyleForEmptyBrackets: no_space
1021
+ Enabled: true
1022
+
1023
+ Style/ModuleFunction:
1024
+ EnforcedStyle: extend_self
1025
+
1026
+ Lint/OrderedMagicComments:
1027
+ Enabled: true
1028
+
1029
+ Lint/DeprecatedOpenSSLConstant:
1030
+ Enabled: true
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rewind-ruby-style
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Rewind Devops
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-07-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rubocop
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0.80'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '0.87'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '0.80'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.87'
33
+ description: Gem containing the config files for style chekers that corresponds to
34
+ the implementation of the Rewind style guide for Ruby.
35
+ email: team@rewind.io
36
+ executables: []
37
+ extensions: []
38
+ extra_rdoc_files: []
39
+ files:
40
+ - reek.yml
41
+ - rubocop.yml
42
+ homepage: https://github.com/rewindio/ruby-style-configs/
43
+ licenses:
44
+ - MIT
45
+ metadata:
46
+ source_code_uri: https://github.com/rewindio/ruby-style-configs/tree/v1.0.2
47
+ github_repo: ssh://github.com/rewindio/ruby-style-configs
48
+ post_install_message:
49
+ rdoc_options: []
50
+ require_paths:
51
+ - lib
52
+ required_ruby_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubygems_version: 3.0.3
64
+ signing_key:
65
+ specification_version: 4
66
+ summary: Rewind's style guide for Ruby.
67
+ test_files: []