makandra-rubocop 13.0.0 → 14.0.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '038d3a8e8094762ce14bfab35f4c9661e96ff05c307cf84a55b4e20e058d5428'
4
- data.tar.gz: caa68f4bb5c4d6766bfbb30336284ccb9d4b1d3606effe2dfd7cc4a47540f1a1
3
+ metadata.gz: 6c1e4e5b2593c40eea8209583193b92bbe7778e37ad91d23e70af1f6a93d6386
4
+ data.tar.gz: 9039e8208be0982c449920119137765ad27034024af0da4620d332cffcec2092
5
5
  SHA512:
6
- metadata.gz: 9998756e689b5ca1ced689b5ba5a73c26dbfc7301fd3cc48372b54a97fddaf4de2e9f453ca09d156e4b55d070e5d208c6a8d27a0b45d007a7fde8353817471c3
7
- data.tar.gz: 2d086403fe97c553ead31ad0991d247862a869e8e9bb3d68e89aae2788f34cd85d8e8190df2b53cf11ec829fdcbb3ad695d97815dbec28e2e85be2575d86d2ec
6
+ metadata.gz: 4b82c14adc78cf783fd05f7caf1215867a964f4287f693c4d7da6cd378f5e9f2a0961b1661ee21b1831d55effe7a9ffaf9feae1f3eed9b2915298e6dc86ac837
7
+ data.tar.gz: bca28cf23c01e624792735b15c89ac076930fa5dd2cbcc2a47be7ea6e9fbc084f66883a6a47bff4d54ffe67f81e43d94904a8a12ed0ee12fe2482b9ce069f064
data/CHANGELOG.md CHANGED
@@ -9,6 +9,18 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
9
9
  ### Compatible changes
10
10
 
11
11
 
12
+ ## 14.0.0 - 2024-08-07
13
+
14
+ ## Compatible changes
15
+
16
+ - Disable `Capybara/ClickLinkOrButtonStyle` (#49)
17
+
18
+ ## Breaking changes
19
+
20
+ - Upgrade to `rubocop-rspec` 3.0.3 (was 2.25.0)
21
+ - Upgrade to `rubocop` 1.61 (was 1.60)
22
+
23
+
12
24
  ## 13.0.0 - 2024-05-27
13
25
 
14
26
  ### Compatible changes
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- makandra-rubocop (13.0.0)
5
- rubocop (~> 1.60.0)
4
+ makandra-rubocop (14.0.0)
5
+ rubocop (~> 1.61)
6
6
  rubocop-capybara (~> 2.20.0)
7
7
  rubocop-factory_bot (~> 2.25.1)
8
8
  rubocop-rails (~> 2.23.1)
9
- rubocop-rspec (~> 2.25.0)
9
+ rubocop-rspec (~> 3.0.3)
10
10
 
11
11
  GEM
12
12
  remote: https://rubygems.org/
@@ -34,29 +34,30 @@ GEM
34
34
  language_server-protocol (3.17.0.3)
35
35
  minitest (5.21.2)
36
36
  mutex_m (0.2.0)
37
- parallel (1.24.0)
38
- parser (3.3.0.5)
37
+ parallel (1.25.1)
38
+ parser (3.3.4.0)
39
39
  ast (~> 2.4.1)
40
40
  racc
41
- racc (1.7.3)
41
+ racc (1.8.0)
42
42
  rack (3.0.9)
43
43
  rainbow (3.1.1)
44
44
  rake (12.3.2)
45
- regexp_parser (2.9.0)
46
- rexml (3.2.6)
47
- rubocop (1.60.2)
45
+ regexp_parser (2.9.2)
46
+ rexml (3.3.2)
47
+ strscan
48
+ rubocop (1.65.0)
48
49
  json (~> 2.3)
49
50
  language_server-protocol (>= 3.17.0)
50
51
  parallel (~> 1.10)
51
52
  parser (>= 3.3.0.2)
52
53
  rainbow (>= 2.2.2, < 4.0)
53
- regexp_parser (>= 1.8, < 3.0)
54
+ regexp_parser (>= 2.4, < 3.0)
54
55
  rexml (>= 3.2.5, < 4.0)
55
- rubocop-ast (>= 1.30.0, < 2.0)
56
+ rubocop-ast (>= 1.31.1, < 2.0)
56
57
  ruby-progressbar (~> 1.7)
57
58
  unicode-display_width (>= 2.4.0, < 3.0)
58
- rubocop-ast (1.31.2)
59
- parser (>= 3.3.0.4)
59
+ rubocop-ast (1.31.3)
60
+ parser (>= 3.3.1.0)
60
61
  rubocop-capybara (2.20.0)
61
62
  rubocop (~> 1.41)
62
63
  rubocop-factory_bot (2.25.1)
@@ -66,12 +67,11 @@ GEM
66
67
  rack (>= 1.1)
67
68
  rubocop (>= 1.33.0, < 2.0)
68
69
  rubocop-ast (>= 1.30.0, < 2.0)
69
- rubocop-rspec (2.25.0)
70
- rubocop (~> 1.40)
71
- rubocop-capybara (~> 2.17)
72
- rubocop-factory_bot (~> 2.22)
70
+ rubocop-rspec (3.0.3)
71
+ rubocop (~> 1.61)
73
72
  ruby-progressbar (1.13.0)
74
73
  ruby2_keywords (0.0.5)
74
+ strscan (3.1.0)
75
75
  tzinfo (2.0.6)
76
76
  concurrent-ruby (~> 1.0)
77
77
  unicode-display_width (2.5.0)
data/config/default.yml CHANGED
@@ -3710,7 +3710,6 @@ Style/EmptyElse:
3710
3710
  Description: 'Avoid empty else-clauses.'
3711
3711
  Enabled: true
3712
3712
  VersionAdded: '0.28'
3713
- VersionChanged: '0.32'
3714
3713
  EnforcedStyle: empty
3715
3714
  # empty - warn only on empty `else`
3716
3715
  # nil - warn on `else` with nil in it
@@ -17,7 +17,7 @@ Capybara:
17
17
 
18
18
  Capybara/ClickLinkOrButtonStyle:
19
19
  Description: Checks for methods of button or link clicks.
20
- Enabled: pending
20
+ Enabled: false # https://github.com/makandra/makandra-rubocop/issues/49
21
21
  VersionAdded: '2.19'
22
22
  VersionChanged: '2.20'
23
23
  EnforcedStyle: link_or_button
data/config/ext/rspec.yml CHANGED
@@ -147,8 +147,9 @@ RSpec/Be:
147
147
 
148
148
  RSpec/BeEmpty:
149
149
  Description: Prefer using `be_empty` when checking for an empty array.
150
- Enabled: pending
150
+ Enabled: true
151
151
  VersionAdded: '2.20'
152
+ VersionChanged: '2.31'
152
153
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeEmpty
153
154
 
154
155
  RSpec/BeEq:
@@ -179,7 +180,7 @@ RSpec/BeNil:
179
180
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeNil
180
181
 
181
182
  RSpec/BeforeAfterAll:
182
- Description: Check that before/after(:all) isn't being used.
183
+ Description: Check that before/after(:all/:context) isn't being used.
183
184
  Enabled: true
184
185
  Exclude:
185
186
  - "**/spec/spec_helper.rb"
@@ -278,9 +279,10 @@ RSpec/DescribedClass:
278
279
  SupportedStyles:
279
280
  - described_class
280
281
  - explicit
282
+ OnlyStaticConstants: false
281
283
  SafeAutoCorrect: false
282
284
  VersionAdded: '1.0'
283
- VersionChanged: '1.11'
285
+ VersionChanged: '2.27'
284
286
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass
285
287
 
286
288
  RSpec/DescribedClassModuleWrapping:
@@ -298,7 +300,7 @@ RSpec/Dialect:
298
300
 
299
301
  RSpec/DuplicatedMetadata:
300
302
  Description: Avoid duplicated metadata.
301
- Enabled: pending
303
+ Enabled: true
302
304
  VersionAdded: '2.16'
303
305
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DuplicatedMetadata
304
306
 
@@ -307,13 +309,14 @@ RSpec/EmptyExampleGroup:
307
309
  Enabled: true
308
310
  SafeAutoCorrect: false
309
311
  VersionAdded: '1.7'
310
- VersionChanged: '2.13'
312
+ VersionChanged: '2.31'
311
313
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyExampleGroup
312
314
 
313
315
  RSpec/EmptyHook:
314
316
  Description: Checks for empty before and after hooks.
315
317
  Enabled: true
316
318
  VersionAdded: '1.39'
319
+ VersionChanged: '2.31'
317
320
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyHook
318
321
 
319
322
  RSpec/EmptyLineAfterExample:
@@ -356,10 +359,17 @@ RSpec/EmptyLineAfterSubject:
356
359
 
357
360
  RSpec/EmptyMetadata:
358
361
  Description: Avoid empty metadata hash.
359
- Enabled: pending
362
+ Enabled: true
360
363
  VersionAdded: '2.24'
364
+ VersionChanged: '2.31'
361
365
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyMetadata
362
366
 
367
+ RSpec/EmptyOutput:
368
+ Description: Check that the `output` matcher is not called with an empty string.
369
+ Enabled: true
370
+ VersionAdded: '2.29'
371
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyOutput
372
+
363
373
  RSpec/Eq:
364
374
  Description: Use `eq` instead of `be ==` to compare objects.
365
375
  Enabled: true
@@ -386,12 +396,6 @@ RSpec/ExampleWithoutDescription:
386
396
  VersionAdded: '1.22'
387
397
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleWithoutDescription
388
398
 
389
- RSpec/ExcessiveDocstringSpacing:
390
- Description: Checks for excessive whitespace in example descriptions.
391
- Enabled: true
392
- VersionAdded: '2.5'
393
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExcessiveDocstringSpacing
394
-
395
399
  RSpec/ExampleWording:
396
400
  Description: Checks for common mistakes in example descriptions.
397
401
  Enabled: true
@@ -408,6 +412,12 @@ RSpec/ExampleWording:
408
412
  StyleGuide: https://rspec.rubystyle.guide/#should-in-example-docstrings
409
413
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleWording
410
414
 
415
+ RSpec/ExcessiveDocstringSpacing:
416
+ Description: Checks for excessive whitespace in example descriptions.
417
+ Enabled: true
418
+ VersionAdded: '2.5'
419
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExcessiveDocstringSpacing
420
+
411
421
  RSpec/ExpectActual:
412
422
  Description: Checks for `expect(...)` calls containing literal values.
413
423
  Enabled: true
@@ -435,32 +445,23 @@ RSpec/ExpectInHook:
435
445
  VersionAdded: '1.16'
436
446
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectInHook
437
447
 
448
+ RSpec/ExpectInLet:
449
+ Description: Do not use `expect` in let.
450
+ Enabled: true
451
+ VersionAdded: '2.30'
452
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectInLet
453
+
438
454
  RSpec/ExpectOutput:
439
455
  Description: Checks for opportunities to use `expect { ... }.to output`.
440
456
  Enabled: true
441
457
  VersionAdded: '1.10'
442
458
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectOutput
443
459
 
444
- RSpec/FilePath:
445
- Description: Checks that spec file paths are consistent and well-formed.
446
- Enabled: true
447
- Include:
448
- - "**/*_spec*rb*"
449
- - "**/spec/**/*"
450
- CustomTransform:
451
- RuboCop: rubocop
452
- RSpec: rspec
453
- IgnoreMethods: false
454
- SpecSuffixOnly: false
455
- VersionAdded: '1.2'
456
- VersionChanged: '2.24'
457
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath
458
-
459
460
  RSpec/Focus:
460
461
  Description: Checks if examples are focused.
461
462
  Enabled: true
462
463
  VersionAdded: '1.5'
463
- VersionChanged: '2.1'
464
+ VersionChanged: '2.31'
464
465
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Focus
465
466
 
466
467
  RSpec/HookArgument:
@@ -479,6 +480,7 @@ RSpec/HooksBeforeExamples:
479
480
  Description: Checks for before/around/after hooks that come after an example.
480
481
  Enabled: true
481
482
  VersionAdded: '1.29'
483
+ VersionChanged: '2.31'
482
484
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HooksBeforeExamples
483
485
 
484
486
  RSpec/IdenticalEqualityAssertion:
@@ -543,6 +545,13 @@ RSpec/InstanceVariable:
543
545
  StyleGuide: https://rspec.rubystyle.guide/#instance-variables
544
546
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/InstanceVariable
545
547
 
548
+ RSpec/IsExpectedSpecify:
549
+ Description: Check for `specify` with `is_expected` and one-liner expectations.
550
+ Enabled: true
551
+ VersionAdded: '2.27'
552
+ StyleGuide: https://rspec.rubystyle.guide/#it-and-specify
553
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IsExpectedSpecify
554
+
546
555
  RSpec/ItBehavesLike:
547
556
  Description: Checks that only one `it_behaves_like` style is used.
548
557
  Enabled: true
@@ -578,7 +587,7 @@ RSpec/LetBeforeExamples:
578
587
  Description: Checks for `let` definitions that come after an example.
579
588
  Enabled: true
580
589
  VersionAdded: '1.16'
581
- VersionChanged: '1.22'
590
+ VersionChanged: '2.31'
582
591
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetBeforeExamples
583
592
 
584
593
  RSpec/LetSetup:
@@ -636,6 +645,12 @@ RSpec/MissingExampleGroupArgument:
636
645
  VersionAdded: '1.28'
637
646
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MissingExampleGroupArgument
638
647
 
648
+ RSpec/MissingExpectationTargetMethod:
649
+ Description: Checks if `.to`, `not_to` or `to_not` are used.
650
+ Enabled: true
651
+ VersionAdded: '3.0'
652
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MissingExpectationTargetMethod
653
+
639
654
  RSpec/MultipleDescribes:
640
655
  Description: Checks for multiple top-level example groups.
641
656
  Enabled: true
@@ -723,7 +738,7 @@ RSpec/Pending:
723
738
 
724
739
  RSpec/PendingWithoutReason:
725
740
  Description: Checks for pending or skipped examples without reason.
726
- Enabled: pending
741
+ Enabled: true
727
742
  VersionAdded: '2.16'
728
743
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/PendingWithoutReason
729
744
 
@@ -762,10 +777,22 @@ RSpec/ReceiveNever:
762
777
 
763
778
  RSpec/RedundantAround:
764
779
  Description: Remove redundant `around` hook.
765
- Enabled: pending
780
+ Enabled: true
766
781
  VersionAdded: '2.19'
767
782
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RedundantAround
768
783
 
784
+ RSpec/RedundantPredicateMatcher:
785
+ Description: Checks for redundant predicate matcher.
786
+ Enabled: true
787
+ VersionAdded: '2.26'
788
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RedundantPredicateMatcher
789
+
790
+ RSpec/RemoveConst:
791
+ Description: Checks that `remove_const` is not used in specs.
792
+ Enabled: true
793
+ VersionAdded: '2.26'
794
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RemoveConst
795
+
769
796
  RSpec/RepeatedDescription:
770
797
  Description: Check for repeated description strings in example groups.
771
798
  Enabled: true
@@ -796,6 +823,12 @@ RSpec/RepeatedIncludeExample:
796
823
  VersionAdded: '1.44'
797
824
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedIncludeExample
798
825
 
826
+ RSpec/RepeatedSubjectCall:
827
+ Description: Checks for repeated calls to subject missing that it is memoized.
828
+ Enabled: true
829
+ VersionAdded: '2.27'
830
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/RepeatedSubjectCall
831
+
799
832
  RSpec/ReturnFromStub:
800
833
  Description: Checks for consistent style of stub's return setting.
801
834
  Enabled: true
@@ -811,13 +844,14 @@ RSpec/ScatteredLet:
811
844
  Description: Checks for let scattered across the example group.
812
845
  Enabled: true
813
846
  VersionAdded: '1.14'
814
- VersionChanged: '1.39'
847
+ VersionChanged: '2.31'
815
848
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredLet
816
849
 
817
850
  RSpec/ScatteredSetup:
818
851
  Description: Checks for setup scattered across multiple hooks in an example group.
819
852
  Enabled: true
820
853
  VersionAdded: '1.10'
854
+ VersionChanged: '2.31'
821
855
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredSetup
822
856
 
823
857
  RSpec/SharedContext:
@@ -827,9 +861,14 @@ RSpec/SharedContext:
827
861
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SharedContext
828
862
 
829
863
  RSpec/SharedExamples:
830
- Description: Enforces use of string to titleize shared examples.
864
+ Description: Checks for consistent style for shared example names.
831
865
  Enabled: true
866
+ EnforcedStyle: string
867
+ SupportedStyles:
868
+ - string
869
+ - symbol
832
870
  VersionAdded: '1.25'
871
+ VersionChanged: '2.26'
833
872
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SharedExamples
834
873
 
835
874
  RSpec/SingleArgumentMessageChain:
@@ -841,7 +880,7 @@ RSpec/SingleArgumentMessageChain:
841
880
 
842
881
  RSpec/SkipBlockInsideExample:
843
882
  Description: Checks for passing a block to `skip` within examples.
844
- Enabled: pending
883
+ Enabled: true
845
884
  VersionAdded: '2.19'
846
885
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SkipBlockInsideExample
847
886
 
@@ -853,7 +892,7 @@ RSpec/SortMetadata:
853
892
 
854
893
  RSpec/SpecFilePathFormat:
855
894
  Description: Checks that spec file paths are consistent and well-formed.
856
- Enabled: pending
895
+ Enabled: true
857
896
  Include:
858
897
  - "**/*_spec.rb"
859
898
  Exclude:
@@ -869,7 +908,7 @@ RSpec/SpecFilePathFormat:
869
908
 
870
909
  RSpec/SpecFilePathSuffix:
871
910
  Description: Checks that spec file paths suffix are consistent and well-formed.
872
- Enabled: pending
911
+ Enabled: true
873
912
  VersionAdded: '2.24'
874
913
  Include:
875
914
  - "**/*_spec*rb*"
@@ -896,6 +935,12 @@ RSpec/SubjectStub:
896
935
  StyleGuide: https://rspec.rubystyle.guide/#dont-stub-subject
897
936
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SubjectStub
898
937
 
938
+ RSpec/UndescriptiveLiteralsDescription:
939
+ Description: Description should be descriptive.
940
+ Enabled: false
941
+ VersionAdded: '2.29'
942
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/UndescriptiveLiteralsDescription
943
+
899
944
  RSpec/UnspecifiedException:
900
945
  Description: Checks for a specified error in checking raised errors.
901
946
  Enabled: true
@@ -957,212 +1002,3 @@ RSpec/Yield:
957
1002
  Enabled: true
958
1003
  VersionAdded: '1.32'
959
1004
  Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Yield
960
-
961
- RSpec/Capybara:
962
- Enabled: false # disable nested cops, as we load rubocop-capybara separately
963
- Include: *1
964
- Language: *2
965
-
966
- RSpec/Capybara/CurrentPathExpectation:
967
- Description: Checks that no expectations are set on Capybara's `current_path`.
968
- Enabled: true
969
- VersionAdded: '1.18'
970
- VersionChanged: '2.0'
971
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/CurrentPathExpectation
972
-
973
- RSpec/Capybara/FeatureMethods:
974
- Description: Checks for consistent method usage in feature specs.
975
- Enabled: true
976
- EnabledMethods: []
977
- VersionAdded: '1.17'
978
- VersionChanged: '2.0'
979
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/FeatureMethods
980
-
981
- RSpec/Capybara/MatchStyle:
982
- Description: Checks for usage of deprecated style methods.
983
- Enabled: pending
984
- VersionAdded: '2.17'
985
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/MatchStyle
986
-
987
- RSpec/Capybara/NegationMatcher:
988
- Description: Enforces use of `have_no_*` or `not_to` for negated expectations.
989
- Enabled: pending
990
- VersionAdded: '2.14'
991
- EnforcedStyle: not_to
992
- SupportedStyles:
993
- - have_no
994
- - not_to
995
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/NegationMatcher
996
-
997
- RSpec/Capybara/SpecificActions:
998
- Description: Checks for there is a more specific actions offered by Capybara.
999
- Enabled: pending
1000
- VersionAdded: '2.14'
1001
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/SpecificActions
1002
-
1003
- RSpec/Capybara/SpecificFinders:
1004
- Description: Checks if there is a more specific finder offered by Capybara.
1005
- Enabled: false # Voted in https://github.com/makandra/makandra-rubocop/pull/41
1006
- VersionAdded: '2.13'
1007
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/SpecificFinders
1008
-
1009
- RSpec/Capybara/SpecificMatcher:
1010
- Description: Checks for there is a more specific matcher offered by Capybara.
1011
- Enabled: true
1012
- VersionAdded: '2.12'
1013
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/SpecificMatcher
1014
-
1015
- RSpec/Capybara/VisibilityMatcher:
1016
- Description: Checks for boolean visibility in Capybara finders.
1017
- Enabled: true
1018
- VersionAdded: '1.39'
1019
- VersionChanged: '2.0'
1020
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/VisibilityMatcher
1021
-
1022
- RSpec/FactoryBot:
1023
- Enabled: false # disable nested cops, as we load rubocop-factory_bot separately
1024
- Include: *1
1025
- Language: *2
1026
-
1027
- RSpec/FactoryBot/AttributeDefinedStatically:
1028
- Description: Always declare attribute values as blocks.
1029
- Enabled: true
1030
- Include:
1031
- - "**/spec/factories.rb"
1032
- - "**/spec/factories/**/*.rb"
1033
- - "**/features/support/factories/**/*.rb"
1034
- VersionAdded: '1.28'
1035
- VersionChanged: '2.23'
1036
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/AttributeDefinedStatically
1037
-
1038
- RSpec/FactoryBot/ConsistentParenthesesStyle:
1039
- Description: Use a consistent style for parentheses in factory bot calls.
1040
- Enabled: pending
1041
- EnforcedStyle: require_parentheses
1042
- SupportedStyles:
1043
- - require_parentheses
1044
- - omit_parentheses
1045
- VersionAdded: '2.14'
1046
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/ConsistentParenthesesStyle
1047
-
1048
- RSpec/FactoryBot/CreateList:
1049
- Description: Checks for create_list usage.
1050
- Enabled: true
1051
- Include:
1052
- - "**/*_spec.rb"
1053
- - "**/spec/**/*"
1054
- - "**/spec/factories.rb"
1055
- - "**/spec/factories/**/*.rb"
1056
- - "**/features/support/factories/**/*.rb"
1057
- EnforcedStyle: create_list
1058
- SupportedStyles:
1059
- - create_list
1060
- - n_times
1061
- VersionAdded: '1.25'
1062
- VersionChanged: '2.23'
1063
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/CreateList
1064
-
1065
- RSpec/FactoryBot/FactoryClassName:
1066
- Description: Use string value when setting the class attribute explicitly.
1067
- Enabled: true
1068
- Include:
1069
- - "**/spec/factories.rb"
1070
- - "**/spec/factories/**/*.rb"
1071
- - "**/features/support/factories/**/*.rb"
1072
- VersionAdded: '1.37'
1073
- VersionChanged: '2.23'
1074
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/FactoryClassName
1075
-
1076
- RSpec/FactoryBot/FactoryNameStyle:
1077
- Description: Checks for name style for argument of FactoryBot::Syntax::Methods.
1078
- Enabled: pending
1079
- VersionAdded: '2.16'
1080
- EnforcedStyle: symbol
1081
- SupportedStyles:
1082
- - symbol
1083
- - string
1084
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/FactoryNameStyle
1085
-
1086
- RSpec/FactoryBot/SyntaxMethods:
1087
- Description: Use shorthands from `FactoryBot::Syntax::Methods` in your specs.
1088
- Enabled: false # requires the usage of `FactoryBot::Syntax::Methods`
1089
- SafeAutoCorrect: false
1090
- VersionAdded: '2.7'
1091
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/SyntaxMethods
1092
-
1093
- RSpec/Rails:
1094
- Enabled: false # disable nested cops, as we load rubocop-rails separately
1095
- Include: *1
1096
- Language: *2
1097
-
1098
- RSpec/Rails/AvoidSetupHook:
1099
- Description: Checks that tests use RSpec `before` hook over Rails `setup` method.
1100
- Enabled: true
1101
- VersionAdded: '2.4'
1102
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/AvoidSetupHook
1103
-
1104
- RSpec/Rails/HaveHttpStatus:
1105
- Description: Checks that tests use `have_http_status` instead of equality matchers.
1106
- Enabled: true
1107
- SafeAutoCorrect: false
1108
- VersionAdded: '2.12'
1109
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HaveHttpStatus
1110
-
1111
- RSpec/Rails/HttpStatus:
1112
- Description: Enforces use of symbolic or numeric value to describe HTTP status.
1113
- Enabled: false # This should not be enforced
1114
- EnforcedStyle: symbolic
1115
- SupportedStyles:
1116
- - numeric
1117
- - symbolic
1118
- - be_status
1119
- VersionAdded: '1.23'
1120
- VersionChanged: '2.20'
1121
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HttpStatus
1122
-
1123
- RSpec/Rails/InferredSpecType:
1124
- Description: Identifies redundant spec type.
1125
- Enabled: pending
1126
- Safe: false
1127
- VersionAdded: '2.14'
1128
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/InferredSpecType
1129
- Inferences:
1130
- channels: channel
1131
- controllers: controller
1132
- features: feature
1133
- generator: generator
1134
- helpers: helper
1135
- jobs: job
1136
- mailboxes: mailbox
1137
- mailers: mailer
1138
- models: model
1139
- requests: request
1140
- integration: request
1141
- api: request
1142
- routing: routing
1143
- system: system
1144
- views: view
1145
-
1146
- RSpec/Rails/MinitestAssertions:
1147
- Description: Check if using Minitest matchers.
1148
- Enabled: pending
1149
- VersionAdded: '2.17'
1150
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/MinitestAssertions
1151
-
1152
- RSpec/Rails/NegationBeValid:
1153
- Description: Enforces use of `be_invalid` or `not_to` for negated be_valid.
1154
- Safe: false
1155
- EnforcedStyle: not_to
1156
- SupportedStyles:
1157
- - not_to
1158
- - be_invalid
1159
- Enabled: pending
1160
- VersionAdded: '2.23'
1161
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/NegationBeValid
1162
-
1163
- RSpec/Rails/TravelAround:
1164
- Description: Prefer to travel in `before` rather than `around`.
1165
- Enabled: pending
1166
- Safe: false
1167
- VersionAdded: '2.19'
1168
- Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/TravelAround
@@ -1,3 +1,3 @@
1
1
  module MakandraRubocop
2
- VERSION = '13.0.0'.freeze
2
+ VERSION = '14.0.0'.freeze
3
3
  end
@@ -24,9 +24,9 @@ Gem::Specification.new do |spec|
24
24
  spec.executables = spec.files.grep(%r(^exe/)) { |f| File.basename(f) }
25
25
  spec.require_paths = ['lib']
26
26
 
27
- spec.add_dependency 'rubocop', '~> 1.60.0'
27
+ spec.add_dependency 'rubocop', '~> 1.61'
28
28
  spec.add_dependency 'rubocop-rails', '~> 2.23.1'
29
- spec.add_dependency 'rubocop-rspec', '~> 2.25.0'
29
+ spec.add_dependency 'rubocop-rspec', '~> 3.0.3'
30
30
  spec.add_dependency 'rubocop-capybara', '~> 2.20.0'
31
31
  spec.add_dependency 'rubocop-factory_bot', '~> 2.25.1'
32
32
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makandra-rubocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 13.0.0
4
+ version: 14.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arne Hartherz
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-05-27 00:00:00.000000000 Z
12
+ date: 2024-08-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 1.60.0
20
+ version: '1.61'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 1.60.0
27
+ version: '1.61'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rubocop-rails
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 2.25.0
48
+ version: 3.0.3
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 2.25.0
55
+ version: 3.0.3
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: rubocop-capybara
58
58
  requirement: !ruby/object:Gem::Requirement