From 703e1a87bcca81f59fd7d359d9d56882815397ef Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Sun, 9 Jun 2024 19:35:49 +0200 Subject: [PATCH] Update config/default.yml with recent releases --- config/default.yml | 18 +++++++++--------- docs/modules/ROOT/pages/cops_rspec.adoc | 18 +++++++++--------- 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/config/default.yml b/config/default.yml index 5de0dedc3..6d2c64027 100644 --- a/config/default.yml +++ b/config/default.yml @@ -149,7 +149,7 @@ RSpec/BeEmpty: Enabled: true AutoCorrect: contextual VersionAdded: '2.20' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeEmpty RSpec/BeEq: @@ -316,7 +316,7 @@ RSpec/EmptyExampleGroup: AutoCorrect: contextual SafeAutoCorrect: false VersionAdded: '1.7' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyExampleGroup RSpec/EmptyHook: @@ -324,7 +324,7 @@ RSpec/EmptyHook: Enabled: true AutoCorrect: contextual VersionAdded: '1.39' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyHook RSpec/EmptyLineAfterExample: @@ -370,7 +370,7 @@ RSpec/EmptyMetadata: Enabled: true AutoCorrect: contextual VersionAdded: '2.24' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyMetadata RSpec/EmptyOutput: @@ -471,7 +471,7 @@ RSpec/Focus: Enabled: true AutoCorrect: contextual VersionAdded: '1.5' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Focus RSpec/HookArgument: @@ -491,7 +491,7 @@ RSpec/HooksBeforeExamples: Enabled: true AutoCorrect: contextual VersionAdded: '1.29' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HooksBeforeExamples RSpec/IdenticalEqualityAssertion: @@ -599,7 +599,7 @@ RSpec/LetBeforeExamples: Enabled: true AutoCorrect: contextual VersionAdded: '1.16' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LetBeforeExamples RSpec/LetSetup: @@ -857,7 +857,7 @@ RSpec/ScatteredLet: Enabled: true AutoCorrect: contextual VersionAdded: '1.14' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredLet RSpec/ScatteredSetup: @@ -865,7 +865,7 @@ RSpec/ScatteredSetup: Enabled: true AutoCorrect: contextual VersionAdded: '1.10' - VersionChanged: "<>" + VersionChanged: '2.31' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredSetup RSpec/SharedContext: diff --git a/docs/modules/ROOT/pages/cops_rspec.adoc b/docs/modules/ROOT/pages/cops_rspec.adoc index 528cea36e..83925346c 100644 --- a/docs/modules/ROOT/pages/cops_rspec.adoc +++ b/docs/modules/ROOT/pages/cops_rspec.adoc @@ -201,7 +201,7 @@ expect(foo).to be(true) | Yes | Command-line only | 2.20 -| <> +| 2.31 |=== Prefer using `be_empty` when checking for an empty array. @@ -1155,7 +1155,7 @@ describe 'Something', :a | Yes | Command-line only (Unsafe) | 1.7 -| <> +| 2.31 |=== Checks if an example group does not include any tests. @@ -1209,7 +1209,7 @@ end | Yes | Command-line only | 1.39 -| <> +| 2.31 |=== Checks for empty before and after hooks. @@ -1512,7 +1512,7 @@ let(:foo) { bar } | Yes | Command-line only | 2.24 -| <> +| 2.31 |=== Avoid empty metadata hash. @@ -2129,7 +2129,7 @@ expect { my_app.print_report }.to output('Hello World').to_stdout | Yes | Command-line only | 1.5 -| <> +| 2.31 |=== Checks if examples are focused. @@ -2291,7 +2291,7 @@ end | Yes | Command-line only | 1.29 -| <> +| 2.31 |=== Checks for before/around/after hooks that come after an example. @@ -3046,7 +3046,7 @@ end | Yes | Command-line only | 1.16 -| <> +| 2.31 |=== Checks for `let` definitions that come after an example. @@ -5038,7 +5038,7 @@ allow(Foo).to receive(:bar).and_return(bar.baz) | Yes | Command-line only | 1.14 -| <> +| 2.31 |=== Checks for let scattered across the example group. @@ -5081,7 +5081,7 @@ end | Yes | Command-line only | 1.10 -| <> +| 2.31 |=== Checks for setup scattered across multiple hooks in an example group.