rubocop-brickdoc 0.1.0

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