ruby-styles 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/rubocop-cli.yml +47 -0
  3. data/rubocop-strict.yml +24 -0
  4. data/rubocop.yml +884 -0
  5. metadata +145 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 135e49a191e37144583a500f92587f44b57955ce1ed2fceb77ec15746b3a29b2
4
+ data.tar.gz: 22aed618f109c2571a1a05c4280cd57455b98f6c40f20ca8615a9322a50fe7b3
5
+ SHA512:
6
+ metadata.gz: ede25cfd321b8e961cfb1cb897e93dc9ed7d940eb3f6c21d13777aaca35fb849911f1e429b22b11f7e6d71768c99c2c46b1831196da4e5745b30ffd103175f60
7
+ data.tar.gz: c06511319d1d4a6d2d40a32e9852f1572b506468775440a9bac247a5cc79d38640a3c19d9e2819cc61399d4f9f2a4359e8b524379e554bbd13b6fd2868524b92
data/rubocop-cli.yml ADDED
@@ -0,0 +1,47 @@
1
+ inherit_gem:
2
+ ruby-styles:
3
+ - rubocop.yml
4
+
5
+ AllCops:
6
+ # We don't always use bundler to make for a faster boot time.
7
+ # In this case we vendor a small number of dependencies we absolutely
8
+ # require. Since they are vendored and 3rd party we do not impose our
9
+ # styleguide on them but they are still in the repo.
10
+ Exclude:
11
+ - 'vendor/**/*'
12
+
13
+ # Mac OS Catalina ships with 2.6.3
14
+ TargetRubyVersion: 2.6
15
+
16
+ # We disable this at entrypoint.
17
+ # Due to CLI apps being invoked via an entry point,
18
+ # we can exclude this from all files
19
+ Style/FrozenStringLiteralComment:
20
+ Enabled: false
21
+
22
+ # This doesn't take into account retrying from an exception. E.g.:
23
+ # begin
24
+ # retries ||= 0
25
+ # do_a_thing
26
+ # rescue => e
27
+ # retry if (retries += 1) < 3
28
+ # handle_error(e)
29
+ # end
30
+ Lint/SuppressedException:
31
+ Enabled: false
32
+
33
+ # Allow the use of globals which occasionally makes sense in a CLI app
34
+ # As we are not multi-threaded and have a single entry point, this makes it easy to,
35
+ # for example, track process environments to restore at the end of invocation
36
+ Style/GlobalVars:
37
+ Enabled: false
38
+
39
+ # Allow readable block formatting in some weird cases
40
+ # Particularly in something like:
41
+ # Dev::Util.begin do
42
+ # might_raise_if_costly_prep_not_done()
43
+ # end.retry_after(ExpectedError) do
44
+ # costly_prep()
45
+ # end
46
+ Style/MultilineBlockChain:
47
+ Enabled: false
@@ -0,0 +1,24 @@
1
+ # These are in a separate file to enable opting in
2
+
3
+ require:
4
+ - rubocop-rspec
5
+
6
+ inherit_mode:
7
+ merge:
8
+ - Exclude
9
+ - Include
10
+
11
+ RSpec/MultipleExpectations:
12
+ Enabled: true
13
+
14
+ RSpec/RepeatedDescription:
15
+ Enabled: true
16
+
17
+ RSpec/RepeatedExampleGroupBody:
18
+ Enabled: true
19
+
20
+ RSpec/RepeatedExampleGroupDescription:
21
+ Enabled: true
22
+
23
+ RSpec/ScatteredSetup:
24
+ Enabled: true
data/rubocop.yml ADDED
@@ -0,0 +1,884 @@
1
+ require:
2
+ - rubocop-rspec
3
+
4
+ inherit_mode:
5
+ merge:
6
+ - Exclude
7
+ - Include
8
+
9
+ AllCops:
10
+ StyleGuideBaseURL: https://github.com/thirunjuguna/ruby-styles/
11
+
12
+ Bundler/GemFilename:
13
+ Enabled: false
14
+
15
+ Bundler/OrderedGems:
16
+ Enabled: false
17
+
18
+ Gemspec/DeprecatedAttributeAssignment:
19
+ Enabled: true
20
+
21
+ Gemspec/DevelopmentDependencies:
22
+ Enabled: false
23
+
24
+ Gemspec/RequireMFA:
25
+ Enabled: false
26
+
27
+ Gemspec/RequiredRubyVersion:
28
+ Enabled: false
29
+
30
+ Layout/ArgumentAlignment:
31
+ EnforcedStyle: with_fixed_indentation
32
+
33
+ Layout/CaseIndentation:
34
+ EnforcedStyle: end
35
+
36
+ Layout/EndAlignment:
37
+ EnforcedStyleAlignWith: variable
38
+
39
+ Layout/FirstArgumentIndentation:
40
+ EnforcedStyle: consistent
41
+
42
+ Layout/FirstArrayElementIndentation:
43
+ EnforcedStyle: consistent
44
+
45
+ Layout/FirstArrayElementLineBreak:
46
+ Enabled: true
47
+ AllowMultilineFinalElement: true
48
+
49
+ Layout/FirstHashElementIndentation:
50
+ EnforcedStyle: consistent
51
+
52
+ Layout/FirstHashElementLineBreak:
53
+ Enabled: true
54
+
55
+ Layout/FirstMethodArgumentLineBreak:
56
+ Enabled: true
57
+ AllowMultilineFinalElement: true
58
+
59
+ Layout/HashAlignment:
60
+ EnforcedLastArgumentHashStyle: ignore_implicit
61
+
62
+ Layout/LineContinuationLeadingSpace:
63
+ Enabled: false
64
+
65
+ Layout/LineContinuationSpacing:
66
+ Enabled: false
67
+
68
+ Layout/LineEndStringConcatenationIndentation:
69
+ Enabled: true
70
+ EnforcedStyle: indented
71
+
72
+ Layout/LineLength:
73
+ IgnoreCopDirectives: false
74
+ AllowedPatterns:
75
+ - "\\A\\s*(remote_)?test(_\\w+)?\\s.*(do|->)(\\s|\\Z)"
76
+
77
+ Layout/MultilineArrayLineBreaks:
78
+ Enabled: true
79
+ AllowMultilineFinalElement: true
80
+
81
+ Layout/MultilineHashKeyLineBreaks:
82
+ Enabled: true
83
+
84
+ Layout/MultilineMethodArgumentLineBreaks:
85
+ Enabled: true
86
+ AllowMultilineFinalElement: true
87
+
88
+ Layout/MultilineMethodCallIndentation:
89
+ EnforcedStyle: indented
90
+ IndentationWidth: 2
91
+
92
+ Layout/MultilineOperationIndentation:
93
+ EnforcedStyle: indented
94
+
95
+ Layout/ParameterAlignment:
96
+ EnforcedStyle: with_fixed_indentation
97
+
98
+ Layout/SpaceBeforeBrackets:
99
+ Enabled: true
100
+
101
+ Lint/AmbiguousAssignment:
102
+ Enabled: false
103
+
104
+ Lint/AmbiguousBlockAssociation:
105
+ Enabled: false
106
+
107
+ Lint/AmbiguousOperatorPrecedence:
108
+ Enabled: false
109
+
110
+ Lint/AmbiguousRange:
111
+ Enabled: false
112
+
113
+ Lint/BooleanSymbol:
114
+ Enabled: false
115
+
116
+ Lint/ConstantDefinitionInBlock:
117
+ Enabled: false
118
+
119
+ Lint/ConstantOverwrittenInRescue:
120
+ Enabled: true
121
+
122
+ Lint/DeprecatedConstants:
123
+ Enabled: false
124
+
125
+ Lint/DisjunctiveAssignmentInConstructor:
126
+ Enabled: false
127
+
128
+ Lint/DuplicateBranch:
129
+ Enabled: false
130
+
131
+ Lint/DuplicateCaseCondition:
132
+ Enabled: false
133
+
134
+ Lint/DuplicateElsifCondition:
135
+ Enabled: false
136
+
137
+ Lint/DuplicateMagicComment:
138
+ Enabled: true
139
+
140
+ Lint/DuplicateRegexpCharacterClassElement:
141
+ Enabled: false
142
+
143
+ Lint/DuplicateRequire:
144
+ Enabled: false
145
+
146
+ Lint/DuplicateRescueException:
147
+ Enabled: false
148
+
149
+ Lint/EmptyBlock:
150
+ Enabled: false
151
+
152
+ Lint/EmptyClass:
153
+ Enabled: false
154
+
155
+ Lint/EmptyConditionalBody:
156
+ Enabled: false
157
+
158
+ Lint/EmptyExpression:
159
+ Enabled: false
160
+
161
+ Lint/EmptyFile:
162
+ Enabled: false
163
+
164
+ Lint/EmptyInPattern:
165
+ Enabled: false
166
+
167
+ Lint/EmptyWhen:
168
+ Enabled: false
169
+
170
+ Lint/ErbNewArguments:
171
+ Enabled: false
172
+
173
+ Lint/FloatComparison:
174
+ Enabled: false
175
+
176
+ Lint/HashCompareByIdentity:
177
+ Enabled: false
178
+
179
+ Lint/IdentityComparison:
180
+ Enabled: false
181
+
182
+ Lint/IncompatibleIoSelectWithFiberScheduler:
183
+ Enabled: false
184
+
185
+ Lint/InterpolationCheck:
186
+ Enabled: false
187
+
188
+ Lint/LambdaWithoutLiteralBlock:
189
+ Enabled: false
190
+
191
+ Lint/MixedRegexpCaptureTypes:
192
+ Enabled: false
193
+
194
+ Lint/MultipleComparison:
195
+ Enabled: false
196
+
197
+ Lint/NestedPercentLiteral:
198
+ Enabled: false
199
+
200
+ Lint/NoReturnInBeginEndBlocks:
201
+ Enabled: false
202
+
203
+ Lint/NonAtomicFileOperation:
204
+ Enabled: false
205
+
206
+ Lint/NonDeterministicRequireOrder:
207
+ Enabled: false
208
+
209
+ Lint/NumberedParameterAssignment:
210
+ Enabled: false
211
+
212
+ Lint/OrAssignmentToConstant:
213
+ Enabled: false
214
+
215
+ Lint/OutOfRangeRegexpRef:
216
+ Enabled: false
217
+
218
+ Lint/RaiseException:
219
+ Enabled: false
220
+
221
+ Lint/RedundantDirGlobSort:
222
+ Enabled: false
223
+
224
+ Lint/RedundantRequireStatement:
225
+ Enabled: false
226
+
227
+ Lint/RedundantSafeNavigation:
228
+ Enabled: false
229
+
230
+ Lint/RedundantWithIndex:
231
+ Enabled: false
232
+
233
+ Lint/RedundantWithObject:
234
+ Enabled: false
235
+
236
+ Lint/RefinementImportMethods:
237
+ Enabled: false
238
+
239
+ Lint/RegexpAsCondition:
240
+ Enabled: false
241
+
242
+ Lint/RequireRangeParentheses:
243
+ Enabled: true
244
+
245
+ Lint/RequireRelativeSelfPath:
246
+ Enabled: true
247
+
248
+ Lint/RescueType:
249
+ Enabled: false
250
+
251
+ Lint/ReturnInVoidContext:
252
+ Enabled: false
253
+
254
+ Lint/SafeNavigationConsistency:
255
+ Enabled: false
256
+
257
+ Lint/SafeNavigationWithEmpty:
258
+ Enabled: false
259
+
260
+ Lint/ScriptPermission:
261
+ Enabled: false
262
+
263
+ Lint/SelfAssignment:
264
+ Enabled: false
265
+
266
+ Lint/SendWithMixinArgument:
267
+ Enabled: false
268
+
269
+ Lint/ShadowedArgument:
270
+ Enabled: false
271
+
272
+ Lint/ShadowingOuterLocalVariable:
273
+ Enabled: false
274
+
275
+ Lint/StructNewOverride:
276
+ Enabled: false
277
+
278
+ Lint/SymbolConversion:
279
+ Enabled: false
280
+
281
+ Lint/ToEnumArguments:
282
+ Enabled: false
283
+
284
+ Lint/ToJSON:
285
+ Enabled: false
286
+
287
+ Lint/TopLevelReturnWithArgument:
288
+ Enabled: false
289
+
290
+ Lint/TrailingCommaInAttributeDeclaration:
291
+ Enabled: false
292
+
293
+ Lint/TripleQuotes:
294
+ Enabled: false
295
+
296
+ Lint/UnexpectedBlockArity:
297
+ Enabled: false
298
+
299
+ Lint/UnmodifiedReduceAccumulator:
300
+ Enabled: false
301
+
302
+ Lint/UnreachableLoop:
303
+ Enabled: false
304
+
305
+ Lint/UnusedMethodArgument:
306
+ Enabled: false
307
+
308
+ Lint/UriEscapeUnescape:
309
+ Enabled: false
310
+
311
+ Lint/UriRegexp:
312
+ Enabled: false
313
+
314
+ Lint/UselessMethodDefinition:
315
+ Enabled: false
316
+
317
+ Lint/UselessRescue:
318
+ Enabled: true
319
+
320
+ Lint/UselessRuby2Keywords:
321
+ Enabled: true
322
+
323
+ Lint/UselessTimes:
324
+ Enabled: false
325
+
326
+ Metrics/AbcSize:
327
+ Enabled: false
328
+
329
+ Metrics/BlockLength:
330
+ Enabled: false
331
+
332
+ Metrics/ClassLength:
333
+ Enabled: false
334
+
335
+ Metrics/CyclomaticComplexity:
336
+ Enabled: false
337
+
338
+ Metrics/MethodLength:
339
+ Enabled: false
340
+
341
+ Metrics/ModuleLength:
342
+ Enabled: false
343
+
344
+ Metrics/ParameterLists:
345
+ CountKeywordArgs: false
346
+
347
+ Metrics/PerceivedComplexity:
348
+ Enabled: false
349
+
350
+ Migration/DepartmentName:
351
+ Enabled: false
352
+
353
+ Naming/BlockForwarding:
354
+ Enabled: false
355
+
356
+ Naming/BlockParameterName:
357
+ Enabled: false
358
+
359
+ Naming/HeredocDelimiterCase:
360
+ Enabled: false
361
+
362
+ Naming/HeredocDelimiterNaming:
363
+ Enabled: false
364
+
365
+ Naming/InclusiveLanguage:
366
+ Enabled: true
367
+ FlaggedTerms:
368
+ master:
369
+ Suggestions:
370
+ - main
371
+ - primary
372
+ - leader
373
+ AllowedRegex:
374
+ - !ruby/regexp '/master[_\s\.]key/' # Rails master key
375
+ - 'blob/master/'
376
+ - 'origin/master'
377
+ - 'mastercard'
378
+ - 'webmaster'
379
+
380
+ Naming/MemoizedInstanceVariableName:
381
+ Enabled: false
382
+
383
+ Naming/MethodParameterName:
384
+ Enabled: false
385
+
386
+ Naming/PredicateName:
387
+ NamePrefix:
388
+ - is_
389
+ ForbiddenPrefixes:
390
+ - is_
391
+
392
+ Naming/RescuedExceptionsVariableName:
393
+ Enabled: false
394
+
395
+ Naming/VariableNumber:
396
+ Enabled: false
397
+
398
+ RSpec/LetSetup:
399
+ Enabled: false
400
+ # Severity: warning # enable in future
401
+
402
+ RSpec/MessageSpies:
403
+ Enabled: false
404
+ # Severity: warning # enable in future
405
+
406
+ RSpec/MissingExampleGroupArgument:
407
+ Enabled: false
408
+ # Severity: warning # enable in future
409
+
410
+ RSpec/MultipleExpectations:
411
+ Enabled: false
412
+ # ! Enabled in rubocop-strict
413
+
414
+ RSpec/NestedGroups:
415
+ Enabled: false
416
+ # Severity: warning # enable in future
417
+
418
+ RSpec/OverwritingSetup:
419
+ Enabled: false
420
+ # Severity: warning # enable in future
421
+
422
+ RSpec/RepeatedDescription:
423
+ Enabled: false
424
+ # ! Enabled in rubocop-strict
425
+
426
+ RSpec/RepeatedExampleGroupBody:
427
+ Enabled: false
428
+ # ! Enabled in rubocop-strict
429
+
430
+ RSpec/RepeatedExampleGroupDescription:
431
+ Enabled: false
432
+ # ! Enabled in rubocop-strict
433
+
434
+ RSpec/ScatteredSetup:
435
+ Enabled: false
436
+ # ! Enabled in rubocop-strict
437
+
438
+ RSpec/VerifiedDoubles:
439
+ Enabled: false
440
+ # Severity: warning # enable in future
441
+
442
+ RSpec/AnyInstance:
443
+ Enabled: false
444
+
445
+ RSpec/ContextWording:
446
+ Enabled: false
447
+
448
+ RSpec/ExampleLength:
449
+ Enabled: false
450
+
451
+ RSpec/FilePath:
452
+ Enabled: false
453
+
454
+ RSpec/Focus:
455
+ AutoCorrect: false
456
+
457
+ RSpec/LeadingSubject:
458
+ Enabled: false
459
+
460
+ RSpec/LetBeforeExamples:
461
+ Enabled: false
462
+
463
+ RSpec/MultipleMemoizedHelpers:
464
+ Enabled: false
465
+
466
+ RSpec/NamedSubject:
467
+ Enabled: false
468
+
469
+ RSpec/PredicateMatcher:
470
+ Enabled: false
471
+
472
+ RSpec/ScatteredLet:
473
+ Enabled: false
474
+
475
+ RSpec/SubjectStub:
476
+ Enabled: false
477
+
478
+ Security/CompoundHash:
479
+ Enabled: false
480
+
481
+ Security/IoMethods:
482
+ Enabled: true
483
+
484
+ Security/MarshalLoad:
485
+ Enabled: false
486
+
487
+ Security/YAMLLoad:
488
+ Enabled: false
489
+
490
+ Style/AccessModifierDeclarations:
491
+ Enabled: false
492
+
493
+ Style/AccessorGrouping:
494
+ Enabled: false
495
+
496
+ Style/Alias:
497
+ EnforcedStyle: prefer_alias_method
498
+
499
+ Style/AndOr:
500
+ EnforcedStyle: always
501
+
502
+ Style/ArgumentsForwarding:
503
+ Enabled: false
504
+
505
+ Style/ArrayIntersect:
506
+ Enabled: true
507
+
508
+ Style/BisectedAttrAccessor:
509
+ Enabled: false
510
+
511
+ Style/CaseEquality:
512
+ AllowOnConstant: true
513
+ AllowOnSelfClass: true
514
+
515
+ Style/CaseLikeIf:
516
+ Enabled: false
517
+
518
+ Style/ClassEqualityComparison:
519
+ Enabled: false
520
+
521
+ Style/ClassMethodsDefinitions:
522
+ EnforcedStyle: self_class
523
+ Enabled: true
524
+
525
+ Style/CollectionCompact:
526
+ Enabled: false
527
+
528
+ Style/ColonMethodDefinition:
529
+ Enabled: false
530
+
531
+ Style/CombinableLoops:
532
+ Enabled: false
533
+
534
+ Style/CommandLiteral:
535
+ EnforcedStyle: percent_x
536
+
537
+ Style/CommentedKeyword:
538
+ Enabled: false
539
+
540
+ Style/ComparableClamp:
541
+ Enabled: true
542
+
543
+ Style/ConcatArrayLiterals:
544
+ Enabled: true
545
+
546
+ Style/DateTime:
547
+ Enabled: true
548
+
549
+ Style/Dir:
550
+ Enabled: false
551
+
552
+ Style/DocumentDynamicEvalDefinition:
553
+ Enabled: false
554
+
555
+ Style/Documentation:
556
+ Enabled: false
557
+
558
+ Style/DoubleCopDisableDirective:
559
+ Enabled: false
560
+
561
+ Style/DoubleNegation:
562
+ Enabled: false
563
+
564
+ Style/EmptyBlockParameter:
565
+ Enabled: false
566
+
567
+ Style/EmptyHeredoc:
568
+ Enabled: true
569
+
570
+ Style/EmptyLambdaParameter:
571
+ Enabled: false
572
+
573
+ Style/EmptyMethod:
574
+ Enabled: false
575
+
576
+ Style/Encoding:
577
+ Enabled: false
578
+
579
+ Style/EndlessMethod:
580
+ Enabled: false
581
+
582
+ Style/EnvHome:
583
+ Enabled: false
584
+
585
+ Style/EvalWithLocation:
586
+ Enabled: false
587
+
588
+ Style/ExpandPathArguments:
589
+ Enabled: false
590
+
591
+ Style/ExponentialNotation:
592
+ Enabled: false
593
+
594
+ Style/FetchEnvVar:
595
+ Enabled: false
596
+
597
+ Style/FileRead:
598
+ Enabled: false
599
+
600
+ Style/FileWrite:
601
+ Enabled: false
602
+
603
+ Style/FloatDivision:
604
+ Enabled: false
605
+
606
+ Style/FormatStringToken:
607
+ Enabled: false
608
+
609
+ Style/FrozenStringLiteralComment:
610
+ SafeAutoCorrect: true
611
+ Details: 'Add `# frozen_string_literal: true` to the top of the file. Frozen string
612
+ literals will become the default in a future Ruby version, and we want to make
613
+ sure we''re ready.'
614
+
615
+ Style/GuardClause:
616
+ Enabled: false
617
+
618
+ Style/HashAsLastArrayItem:
619
+ Enabled: false
620
+
621
+ Style/HashConversion:
622
+ Enabled: false
623
+
624
+ Style/HashEachMethods:
625
+ Enabled: false
626
+
627
+ Style/HashExcept:
628
+ Enabled: false
629
+
630
+ Style/HashLikeCase:
631
+ Enabled: false
632
+
633
+ Style/HashSyntax:
634
+ EnforcedShorthandSyntax: either
635
+
636
+ Style/HashTransformKeys:
637
+ Enabled: false
638
+
639
+ Style/HashTransformValues:
640
+ Enabled: false
641
+
642
+ Style/IfUnlessModifier:
643
+ Enabled: false
644
+
645
+ Style/IfWithBooleanLiteralBranches:
646
+ Enabled: false
647
+
648
+ Style/InPatternThen:
649
+ Enabled: true
650
+
651
+ Style/InverseMethods:
652
+ Enabled: false
653
+
654
+ Style/InvertibleUnlessCondition:
655
+ Enabled: true
656
+
657
+ Style/KeywordParametersOrder:
658
+ Enabled: false
659
+
660
+ Style/Lambda:
661
+ Enabled: false
662
+
663
+ Style/MagicCommentFormat:
664
+ Enabled: true
665
+ ValueCapitalization: lowercase
666
+
667
+ Style/MapCompactWithConditionalBlock:
668
+ Enabled: false
669
+
670
+ Style/MapToHash:
671
+ Enabled: false
672
+
673
+ Style/MapToSet:
674
+ Enabled: false
675
+
676
+ Style/MethodCallWithArgsParentheses:
677
+ Enabled: true
678
+ AllowedMethods:
679
+ - require
680
+ - require_relative
681
+ - require_dependency
682
+ - yield
683
+ - raise
684
+ - puts
685
+ Exclude:
686
+ - "/**/Gemfile"
687
+
688
+ Style/MinMax:
689
+ Enabled: false
690
+
691
+ Style/MinMaxComparison:
692
+ Enabled: true
693
+
694
+ Style/MixinGrouping:
695
+ Enabled: false
696
+
697
+ Style/MixinUsage:
698
+ Enabled: false
699
+
700
+ Style/ModuleFunction:
701
+ EnforcedStyle: extend_self
702
+
703
+ Style/MultilineBlockChain:
704
+ Enabled: false
705
+
706
+ Style/MultilineIfModifier:
707
+ Enabled: false
708
+
709
+ Style/MultilineInPatternThen:
710
+ Enabled: false
711
+
712
+ Style/MultilineWhenThen:
713
+ Enabled: false
714
+
715
+ Style/MultipleComparison:
716
+ Enabled: false
717
+
718
+ Style/MutableConstant:
719
+ Enabled: false
720
+
721
+ Style/NegatedIfElseCondition:
722
+ Enabled: false
723
+
724
+ Style/NegatedUnless:
725
+ Enabled: false
726
+
727
+ Style/NestedFileDirname:
728
+ Enabled: true
729
+
730
+ Style/NilLambda:
731
+ Enabled: false
732
+
733
+ Style/NumberedParameters:
734
+ Enabled: false
735
+
736
+ Style/NumberedParametersLimit:
737
+ Enabled: false
738
+
739
+ Style/NumericLiterals:
740
+ Enabled: false
741
+
742
+ Style/NumericPredicate:
743
+ Enabled: false
744
+
745
+ Style/ObjectThen:
746
+ Enabled: false
747
+
748
+ Style/OpenStructUse:
749
+ Enabled: true
750
+
751
+ Style/OperatorMethodCall:
752
+ Enabled: true
753
+
754
+ Style/OptionalBooleanParameter:
755
+ Enabled: false
756
+
757
+ Style/OrAssignment:
758
+ Enabled: false
759
+
760
+ Style/PercentLiteralDelimiters:
761
+ Enabled: false
762
+
763
+ Style/QuotedSymbols:
764
+ Enabled: true
765
+
766
+ Style/RandomWithOffset:
767
+ Enabled: false
768
+
769
+ Style/RedundantArgument:
770
+ Enabled: false
771
+
772
+ Style/RedundantAssignment:
773
+ Enabled: false
774
+
775
+ Style/RedundantCondition:
776
+ Enabled: false
777
+
778
+ Style/RedundantConditional:
779
+ Enabled: false
780
+
781
+ Style/RedundantConstantBase:
782
+ Enabled: true
783
+
784
+ Style/RedundantDoubleSplatHashBraces:
785
+ Enabled: true
786
+
787
+ Style/RedundantEach:
788
+ Enabled: true
789
+
790
+ Style/RedundantFetchBlock:
791
+ Enabled: false
792
+
793
+ Style/RedundantFileExtensionInRequire:
794
+ Enabled: false
795
+
796
+ Style/RedundantInitialize:
797
+ Enabled: false
798
+
799
+ Style/RedundantRegexpCharacterClass:
800
+ Enabled: false
801
+
802
+ Style/RedundantRegexpEscape:
803
+ Enabled: false
804
+
805
+ Style/RedundantSelfAssignment:
806
+ Enabled: false
807
+
808
+ Style/RedundantSelfAssignmentBranch:
809
+ Enabled: false
810
+
811
+ Style/RedundantSort:
812
+ Enabled: false
813
+
814
+ Style/RedundantStringEscape:
815
+ Enabled: true
816
+
817
+ Style/RegexpLiteral:
818
+ EnforcedStyle: mixed
819
+
820
+ Style/RescueStandardError:
821
+ Enabled: false
822
+
823
+ Style/SelectByRegexp:
824
+ Enabled: false
825
+
826
+ Style/SingleArgumentDig:
827
+ Enabled: false
828
+
829
+ Style/SlicingWithRange:
830
+ Enabled: false
831
+
832
+ Style/SoleNestedConditional:
833
+ Enabled: false
834
+
835
+ Style/StderrPuts:
836
+ Enabled: false
837
+
838
+ Style/StringChars:
839
+ Enabled: false
840
+
841
+ Style/StringConcatenation:
842
+ Enabled: false
843
+
844
+ Style/StringLiterals:
845
+ EnforcedStyle: double_quotes
846
+
847
+ Style/StringLiteralsInInterpolation:
848
+ EnforcedStyle: double_quotes
849
+
850
+ Style/StructInheritance:
851
+ Enabled: false
852
+
853
+ Style/SwapValues:
854
+ Enabled: false
855
+
856
+ Style/SymbolArray:
857
+ EnforcedStyle: brackets
858
+
859
+ Style/TrailingBodyOnMethodDefinition:
860
+ Enabled: false
861
+
862
+ Style/TrailingCommaInArguments:
863
+ EnforcedStyleForMultiline: comma
864
+
865
+ Style/TrailingCommaInArrayLiteral:
866
+ EnforcedStyleForMultiline: consistent_comma
867
+
868
+ Style/TrailingCommaInHashLiteral:
869
+ EnforcedStyleForMultiline: consistent_comma
870
+
871
+ Style/TrailingMethodEndStatement:
872
+ Enabled: false
873
+
874
+ Style/TrailingUnderscoreVariable:
875
+ Enabled: false
876
+
877
+ Style/UnpackFirst:
878
+ Enabled: false
879
+
880
+ Style/WordArray:
881
+ EnforcedStyle: brackets
882
+
883
+ Style/YodaCondition:
884
+ Enabled: false
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ruby-styles
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Thiru Njuguna
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-04-16 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: '1.30'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.30'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop-rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.12'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.12'
41
+ - !ruby/object:Gem::Dependency
42
+ name: diffy
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry-byebug
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ description: Gem containing the rubocop.yml config that corresponds to the implementation
112
+ of the styling guide for Ruby.
113
+ email:
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - rubocop-cli.yml
119
+ - rubocop-strict.yml
120
+ - rubocop.yml
121
+ homepage: https://github.com/thirunjuguna/ruby-styles
122
+ licenses:
123
+ - MIT
124
+ metadata:
125
+ source_code_uri: https://github.com/thirunjuguna/ruby-styles/tree/v0.1.0
126
+ post_install_message:
127
+ rdoc_options: []
128
+ require_paths:
129
+ - lib
130
+ required_ruby_version: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - ">="
133
+ - !ruby/object:Gem::Version
134
+ version: '3.1'
135
+ required_rubygems_version: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ requirements: []
141
+ rubygems_version: 3.1.6
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Styling guide for Ruby.
145
+ test_files: []