art-rubocop 1.1.4 → 1.1.5

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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/art-rubocop.gemspec +1 -1
  4. data/default.yml +35 -73
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b881297187222454fba57fe775d64a7d28963fe5a0ad8cde8a4127cf45f02a74
4
- data.tar.gz: 28c8b9a574aa927de96c7eb920cc8c0d6289b0379a17d326ab4f75ab54af332d
3
+ metadata.gz: 4021dcf6d116422c1e459fd31a0d3112aa9e3577986c515e5a07265e653acf3f
4
+ data.tar.gz: 1b01ee4ce0a85b74622925378b91c3367ab1e06bcc7a525df97e303dd792c12a
5
5
  SHA512:
6
- metadata.gz: 67230404769d4b7ab0f05b51cbd1370efe879d157df4e39e53778c82952db50d6dd81b4485d93938c206f3b0fc1d05ea1b56adfcabc150371f505f21c62b7294
7
- data.tar.gz: 115abf3dc0e738bb2e4e8895e9b9ec9d41c4f39a8a14eab03234a7dd722126e8455d9b95ed1042b2d49f2fff48764b2670f1cce6c2741f494f00611834409cc4
6
+ metadata.gz: e7ecd1f655415200de931163a8417f2d8c38d64dd1d76e0d2834b352afe118d73c300f2087ef1a3b3fdcc208b16b238f80adb8fb3de37f3964f25b61d16d71c7
7
+ data.tar.gz: 610841d2efdf38f96eac792b8d0e0fc5b7986c8f024d89dc832da9275eddca5ae633e79006870f9d6a5a6b0bd9c91c95aa2c7da9ab235aeb865add17fe50a174
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- art-rubocop (1.1.4)
4
+ art-rubocop (1.1.5)
5
5
  rubocop (~> 1.41, >= 1.41.0)
6
6
  rubocop-performance (~> 1.15, >= 1.15.1)
7
7
  rubocop-rails (~> 2.17, >= 2.17.3)
data/art-rubocop.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "art-rubocop"
5
- spec.version = "1.1.4"
5
+ spec.version = "1.1.5"
6
6
  spec.authors = ["Growth Engineering"]
7
7
  spec.email = ["devinrm@articulate.com"]
8
8
  spec.summary = "Rubocop style guide for Articulate Growth Engineering"
data/default.yml CHANGED
@@ -41,8 +41,7 @@ Layout/HashAlignment:
41
41
 
42
42
  Layout/ConditionPosition:
43
43
  Description: >-
44
- Checks for condition placed in a confusing position relative to
45
- the keyword.
44
+ Checks for condition placed in a confusing position relative to the keyword.
46
45
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#same-line-condition"
47
46
  Enabled: false
48
47
 
@@ -75,15 +74,13 @@ Layout/LineLength:
75
74
 
76
75
  Layout/MultilineOperationIndentation:
77
76
  Description: >-
78
- Checks indentation of binary operations that span more than
79
- one line.
77
+ Checks indentation of binary operations that span more than one line.
80
78
  Enabled: true
81
79
  EnforcedStyle: indented
82
80
 
83
81
  Layout/MultilineMethodCallIndentation:
84
82
  Description: >-
85
- Checks indentation of method calls with the dot operator
86
- that span more than one line.
83
+ Checks indentation of method calls with the dot operator that span more than one line.
87
84
  Enabled: true
88
85
  EnforcedStyle: indented
89
86
 
@@ -112,15 +109,13 @@ Layout/SpaceAroundMethodCallOperator:
112
109
 
113
110
  Lint/AmbiguousOperator:
114
111
  Description: >-
115
- Checks for ambiguous operators in the first argument of a
116
- method invocation without parentheses.
112
+ Checks for ambiguous operators in the first argument of a method invocation without parentheses.
117
113
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#parens-as-args"
118
114
  Enabled: false
119
115
 
120
116
  Lint/AmbiguousRegexpLiteral:
121
117
  Description: >-
122
- Checks for ambiguous regexp literals in the first argument of
123
- a method invocation without parenthesis.
118
+ Checks for ambiguous regexp literals in the first argument of a method invocation without parenthesis.
124
119
  Enabled: false
125
120
 
126
121
  Lint/AssignmentInCondition:
@@ -184,8 +179,7 @@ Lint/LiteralInInterpolation:
184
179
 
185
180
  Lint/Loop:
186
181
  Description: >-
187
- Use Kernel#loop with break rather than begin/end/until or
188
- begin/end/while for post-loop tests.
182
+ Use Kernel#loop with break rather than begin/end/until or begin/end/while for post-loop tests.
189
183
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#loop-with-break"
190
184
  Enabled: false
191
185
 
@@ -200,8 +194,7 @@ Lint/NonLocalExitFromIterator:
200
194
 
201
195
  Lint/ParenthesesAsGroupedExpression:
202
196
  Description: >-
203
- Checks for method calls with a space before the opening
204
- parenthesis.
197
+ Checks for method calls with a space before the opening parenthesis.
205
198
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#parens-no-spaces"
206
199
  Enabled: false
207
200
 
@@ -215,15 +208,12 @@ Lint/RaiseException:
215
208
 
216
209
  Lint/RedundantCopDisableDirective:
217
210
  Description: >-
218
- Checks for rubocop:disable comments that can be removed.
219
- Note: this cop is not disabled when disabling all cops.
220
- It must be explicitly disabled.
211
+ Checks for rubocop:disable comments that can be removed. Note: this cop is not disabled when disabling all cops. It must be explicitly disabled.
221
212
  Enabled: true
222
213
 
223
214
  Lint/RequireParentheses:
224
215
  Description: >-
225
- Use parentheses in the method call to avoid confusion
226
- about precedence.
216
+ Use parentheses in the method call to avoid confusion about precedence.
227
217
  Enabled: false
228
218
 
229
219
  Lint/StructNewOverride:
@@ -243,8 +233,7 @@ Lint/Void:
243
233
 
244
234
  Metrics/AbcSize:
245
235
  Description: >-
246
- A calculated magnitude based on number of assignments,
247
- branches, and conditions.
236
+ A calculated magnitude based on number of assignments, branches, and conditions.
248
237
  Enabled: false
249
238
 
250
239
  Metrics/BlockLength:
@@ -270,8 +259,7 @@ Metrics/ClassLength:
270
259
 
271
260
  Metrics/CyclomaticComplexity:
272
261
  Description: >-
273
- A complexity metric that is strongly correlated to the number
274
- of test cases needed to validate a method.
262
+ A complexity metric that is strongly correlated to the number of test cases needed to validate a method.
275
263
  Enabled: false
276
264
 
277
265
  Metrics/MethodLength:
@@ -397,15 +385,13 @@ Style/ColonMethodCall:
397
385
 
398
386
  Style/CommentAnnotation:
399
387
  Description: >-
400
- Checks formatting of special comments
401
- (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
388
+ Checks formatting of special comments (TODO, FIXME, OPTIMIZE, HACK, REVIEW).
402
389
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#annotate-keywords"
403
390
  Enabled: false
404
391
 
405
392
  Style/ConditionalAssignment:
406
393
  Description: >-
407
- Use the return of the conditional for variable assignment and
408
- comparison.
394
+ Use the return of the conditional for variable assignment and comparison.
409
395
  Enabled: false
410
396
 
411
397
  Style/Documentation:
@@ -454,8 +440,7 @@ Style/ExponentialNotation:
454
440
 
455
441
  Style/FrozenStringLiteralComment:
456
442
  Description: >-
457
- Add the frozen_string_literal comment to the top of files
458
- to help transition from Ruby 2.3.0 to Ruby 3.0.
443
+ Add the frozen_string_literal comment to the top of files to help transition from Ruby 2.3.0 to Ruby 3.0.
459
444
  Enabled: false
460
445
 
461
446
  Style/FormatString:
@@ -498,8 +483,7 @@ Style/HashTransformValues:
498
483
 
499
484
  Style/IfUnlessModifier:
500
485
  Description: >-
501
- Favor modifier if/unless usage when you have a
502
- single-line body.
486
+ Favor modifier if/unless usage when you have a single-line body.
503
487
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier"
504
488
  Enabled: true
505
489
 
@@ -524,8 +508,7 @@ Style/LambdaCall:
524
508
 
525
509
  Style/LineEndConcatenation:
526
510
  Description: >-
527
- Use \ instead of + or << to concatenate two string literals at
528
- line end.
511
+ Use \ instead of + or << to concatenate two string literals at line end.
529
512
  Enabled: false
530
513
 
531
514
  Style/PreferredHashMethods:
@@ -535,8 +518,7 @@ Style/PreferredHashMethods:
535
518
 
536
519
  Style/RedundantFetchBlock:
537
520
  Description: >-
538
- Use `fetch(key, value)` instead of `fetch(key) { value }`
539
- when value has Numeric, Rational, Complex, Symbol or String type, `false`, `true`, `nil` or is a constant.
521
+ Use `fetch(key, value)` instead of `fetch(key) { value }` when value has Numeric, Rational, Complex, Symbol or String type, `false`, `true`, `nil` or is a constant.
540
522
  Reference: "https://github.com/JuanitoFatas/fast-ruby#hashfetch-with-argument-vs-hashfetch--block-code"
541
523
  Enabled: true
542
524
  Safe: false
@@ -558,9 +540,7 @@ Style/RedundantRegexpEscape:
558
540
 
559
541
  Style/SafeNavigation:
560
542
  Description: >-
561
- This cop transforms usages of a method call safeguarded by
562
- a check for the existence of the object to
563
- safe navigation (`&.`).
543
+ This cop transforms usages of a method call safeguarded by a check for the existence of the object to safe navigation (`&.`).
564
544
  Enabled: false
565
545
  VersionAdded: "0.43"
566
546
  VersionChanged: "0.56"
@@ -597,8 +577,7 @@ Style/MultilineBlockChain:
597
577
 
598
578
  Style/NegatedIf:
599
579
  Description: >-
600
- Favor unless over if for negative conditions
601
- (or control flow or).
580
+ Favor unless over if for negative conditions (or control flow or).
602
581
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#unless-for-negatives"
603
582
  Enabled: false
604
583
 
@@ -624,15 +603,13 @@ Style/Not:
624
603
 
625
604
  Style/NumericLiterals:
626
605
  Description: >-
627
- Add underscores to large numeric literals to improve their
628
- readability.
606
+ Add underscores to large numeric literals to improve their readability.
629
607
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#underscores-in-numerics"
630
608
  Enabled: false
631
609
 
632
610
  Style/OneLineConditional:
633
611
  Description: >-
634
- Favor the ternary operator(?:) over
635
- if/then/else/end constructs.
612
+ Favor the ternary operator(?:) over if/then/else/end constructs.
636
613
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#ternary-operator"
637
614
  Enabled: false
638
615
 
@@ -669,15 +646,13 @@ Style/RegexpLiteral:
669
646
 
670
647
  Style/Sample:
671
648
  Description: >-
672
- Use `sample` instead of `shuffle.first`,
673
- `shuffle.last`, and `shuffle[Fixnum]`.
649
+ Use `sample` instead of `shuffle.first`, `shuffle.last`, and `shuffle[Fixnum]`.
674
650
  Reference: "https://github.com/JuanitoFatas/fast-ruby#arrayshufflefirst-vs-arraysample-code"
675
651
  Enabled: true
676
652
 
677
653
  Style/SelfAssignment:
678
654
  Description: >-
679
- Checks for places where self-assignment shorthand should have
680
- been used.
655
+ Checks for places where self-assignment shorthand should have been used.
681
656
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#self-assignment"
682
657
  Enabled: false
683
658
 
@@ -746,8 +721,7 @@ Style/TrivialAccessors:
746
721
 
747
722
  Style/VariableInterpolation:
748
723
  Description: >-
749
- Don't interpolate global, instance and class variables
750
- directly in strings.
724
+ Don't interpolate global, instance and class variables directly in strings.
751
725
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#curlies-interpolate"
752
726
  Enabled: false
753
727
 
@@ -758,8 +732,7 @@ Style/WhenThen:
758
732
 
759
733
  Style/WhileUntilModifier:
760
734
  Description: >-
761
- Favor modifier while/until usage when you have a
762
- single-line body.
735
+ Favor modifier while/until usage when you have a single-line body.
763
736
  StyleGuide: "https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier"
764
737
  Enabled: false
765
738
 
@@ -772,29 +745,23 @@ Style/WordArray:
772
745
 
773
746
  Performance/CaseWhenSplat:
774
747
  Description: >-
775
- Place `when` conditions that use splat at the end
776
- of the list of `when` branches.
748
+ Place `when` conditions that use splat at the end of the list of `when` branches.
777
749
  Enabled: true
778
750
 
779
751
  Performance/Count:
780
752
  Description: >-
781
- Use `count` instead of `select...size`, `reject...size`,
782
- `select...count`, `reject...count`, `select...length`,
783
- and `reject...length`.
753
+ Use `count` instead of `select...size`, `reject...size`, `select...count`, `reject...count`, `select...length`, and `reject...length`.
784
754
  Enabled: true
785
755
 
786
756
  Performance/Detect:
787
757
  Description: >-
788
- Use `detect` instead of `select.first`, `find_all.first`,
789
- `select.last`, and `find_all.last`.
758
+ Use `detect` instead of `select.first`, `find_all.first`, `select.last`, and `find_all.last`.
790
759
  Reference: "https://github.com/JuanitoFatas/fast-ruby#enumerabledetect-vs-enumerableselectfirst-code"
791
760
  Enabled: true
792
761
 
793
762
  Performance/FlatMap:
794
763
  Description: >-
795
- Use `Enumerable#flat_map`
796
- instead of `Enumerable#map...Array#flatten(1)`
797
- or `Enumberable#collect..Array#flatten(1)`
764
+ Use `Enumerable#flat_map` instead of `Enumerable#map...Array#flatten(1)` or `Enumberable#collect..Array#flatten(1)`
798
765
  Reference: "https://github.com/JuanitoFatas/fast-ruby#enumerablemaparrayflatten-vs-enumerableflat_map-code"
799
766
  Enabled: true
800
767
 
@@ -805,16 +772,13 @@ Performance/ReverseEach:
805
772
 
806
773
  Performance/Size:
807
774
  Description: >-
808
- Use `size` instead of `count` for counting
809
- the number of elements in `Array` and `Hash`.
775
+ Use `size` instead of `count` for counting the number of elements in `Array` and `Hash`.
810
776
  Reference: "https://github.com/JuanitoFatas/fast-ruby#arraycount-vs-arraysize-code"
811
777
  Enabled: true
812
778
 
813
779
  Performance/StringReplacement:
814
780
  Description: >-
815
- Use `tr` instead of `gsub` when you are replacing the same
816
- number of characters. Use `delete` instead of `gsub` when
817
- you are deleting characters.
781
+ Use `tr` instead of `gsub` when you are replacing the same number of characters. Use `delete` instead of `gsub` when you are deleting characters.
818
782
  Reference: "https://github.com/JuanitoFatas/fast-ruby#stringgsub-vs-stringtr-code"
819
783
  Enabled: true
820
784
 
@@ -826,8 +790,7 @@ Rails/ActionFilter:
826
790
 
827
791
  Rails/Date:
828
792
  Description: >-
829
- Checks the correct usage of date aware methods,
830
- such as Date.today, Date.current etc.
793
+ Checks the correct usage of date aware methods, such as Date.today, Date.current etc.
831
794
  Enabled: true
832
795
 
833
796
  Rails/Delegate:
@@ -876,8 +839,7 @@ Rails/Output:
876
839
 
877
840
  Rails/ReadWriteAttribute:
878
841
  Description: >-
879
- Checks for read_attribute(:attr) and
880
- write_attribute(:attr, val).
842
+ Checks for read_attribute(:attr) and write_attribute(:attr, val).
881
843
  Enabled: false
882
844
 
883
845
  Rails/ScopeArgs:
@@ -898,12 +860,12 @@ Rails/Validation:
898
860
  Description: "Use validates :attribute, hash of validations."
899
861
  Enabled: false
900
862
 
901
- RSpec/FactoryBot/AttributeDefinedStatically:
863
+ FactoryBot/AttributeDefinedStatically:
902
864
  Description: Always declare attribute values as blocks.
903
865
  Enabled: true
904
866
  StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/AttributeDefinedStatically
905
867
 
906
- RSpec/FactoryBot/CreateList:
868
+ FactoryBot/CreateList:
907
869
  Description: Checks for create_list usage.
908
870
  Enabled: false
909
871
  EnforcedStyle: create_list
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: art-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Growth Engineering