art-rubocop 1.1.3 → 1.1.5

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 +4 -4
  2. data/Gemfile.lock +20 -15
  3. data/art-rubocop.gemspec +1 -1
  4. data/default.yml +35 -73
  5. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5b6b2aa9106616edf1931de3affd76a91fddcca20c11a9b7ddaaa42bb691017b
4
- data.tar.gz: 7f7d33ece1467ee15e234a9aa597547f8a302b92c76d54bd2339ee122a04b969
3
+ metadata.gz: 4021dcf6d116422c1e459fd31a0d3112aa9e3577986c515e5a07265e653acf3f
4
+ data.tar.gz: 1b01ee4ce0a85b74622925378b91c3367ab1e06bcc7a525df97e303dd792c12a
5
5
  SHA512:
6
- metadata.gz: fc740c6bbafb58b9e73e7aa90050e59d7baa861b0a9de512f6e151445549a1f8c42c7f1888073352b43524cdbc16042d7940e24eddf98e3973c21d8794cfd52b
7
- data.tar.gz: 5f9a4a46ea9488217c72ccb224bded7ef5e3f10333a043d4aaff188e474ae996372cd7e33c4fcd93f4e1ea5423e4854f038815e7979b91cc8486b8589cafd379
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.3)
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)
@@ -10,49 +10,54 @@ PATH
10
10
  GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
- activesupport (7.0.4.3)
13
+ activesupport (7.0.5)
14
14
  concurrent-ruby (~> 1.0, >= 1.0.2)
15
15
  i18n (>= 1.6, < 2)
16
16
  minitest (>= 5.1)
17
17
  tzinfo (~> 2.0)
18
18
  ast (2.4.2)
19
19
  concurrent-ruby (1.2.2)
20
- i18n (1.12.0)
20
+ i18n (1.14.1)
21
21
  concurrent-ruby (~> 1.0)
22
22
  json (2.6.3)
23
- minitest (5.18.0)
23
+ minitest (5.18.1)
24
24
  parallel (1.23.0)
25
- parser (3.2.2.0)
25
+ parser (3.2.2.3)
26
26
  ast (~> 2.4.1)
27
- rack (3.0.7)
27
+ racc
28
+ racc (1.7.1)
29
+ rack (3.0.8)
28
30
  rainbow (3.1.1)
29
31
  rake (13.0.6)
30
- regexp_parser (2.8.0)
32
+ regexp_parser (2.8.1)
31
33
  rexml (3.2.5)
32
- rubocop (1.50.2)
34
+ rubocop (1.52.1)
33
35
  json (~> 2.3)
34
36
  parallel (~> 1.10)
35
- parser (>= 3.2.0.0)
37
+ parser (>= 3.2.2.3)
36
38
  rainbow (>= 2.2.2, < 4.0)
37
39
  regexp_parser (>= 1.8, < 3.0)
38
40
  rexml (>= 3.2.5, < 4.0)
39
41
  rubocop-ast (>= 1.28.0, < 2.0)
40
42
  ruby-progressbar (~> 1.7)
41
43
  unicode-display_width (>= 2.4.0, < 3.0)
42
- rubocop-ast (1.28.0)
44
+ rubocop-ast (1.29.0)
43
45
  parser (>= 3.2.1.0)
44
- rubocop-capybara (2.17.1)
46
+ rubocop-capybara (2.18.0)
45
47
  rubocop (~> 1.41)
46
- rubocop-performance (1.17.1)
48
+ rubocop-factory_bot (2.23.1)
49
+ rubocop (~> 1.33)
50
+ rubocop-performance (1.18.0)
47
51
  rubocop (>= 1.7.0, < 2.0)
48
52
  rubocop-ast (>= 0.4.0)
49
- rubocop-rails (2.19.1)
53
+ rubocop-rails (2.20.2)
50
54
  activesupport (>= 4.2.0)
51
55
  rack (>= 1.1)
52
56
  rubocop (>= 1.33.0, < 2.0)
53
- rubocop-rspec (2.20.0)
57
+ rubocop-rspec (2.22.0)
54
58
  rubocop (~> 1.33)
55
59
  rubocop-capybara (~> 2.17)
60
+ rubocop-factory_bot (~> 2.22)
56
61
  ruby-progressbar (1.13.0)
57
62
  tzinfo (2.0.6)
58
63
  concurrent-ruby (~> 1.0)
@@ -69,4 +74,4 @@ DEPENDENCIES
69
74
  rake
70
75
 
71
76
  BUNDLED WITH
72
- 2.4.12
77
+ 2.4.14
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.3"
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,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: art-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Growth Engineering
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2023-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  requirements: []
161
- rubygems_version: 3.4.12
161
+ rubygems_version: 3.4.14
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: Rubocop style guide for Articulate Growth Engineering