diff --git a/CHANGELOG.md b/CHANGELOG.md index 7af7df98c..d05cca184 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,16 +2,17 @@ ## Master (Unreleased) -## 3.0.0.pre (2024-06-05) +## 3.0.0 (2024-06-11) - Remove extracted cops in `Capybara`, `FactoryBot` and `Rails` departments. ([@ydah]) - Remove `RuboCop::RSpec::Language::NodePattern`. ([@ydah]) - Remove `RSpec/FilePath` cop. ([@ydah]) - Remove `RSpec/Capybara/FeatureMethods` cop. If you are using this cop, change it to use `RSpec/Dialect`. ([@ydah]) -- Enable all pending cops. ([@bquorning]) - Add new `RSpec/MissingExpectationTargetMethod` cop. ([@krororo]) - Fix an error for `RSpec/ScatteredSetup` when one of the hooks is an empty block. ([@earlopain]) +These previously pending cops are now enabled by default: `RSpec/BeEmpty`, `RSpec/BeEq`, `RSpec/BeNil`, `RSpec/ChangeByZero`, `RSpec/ClassCheck`, `RSpec/ContainExactly`, `RSpec/DuplicatedMetadata`, `RSpec/EmptyMetadata`, `RSpec/EmptyOutput`, `RSpec/Eq`, `RSpec/ExcessiveDocstringSpacing`, `RSpec/ExpectInLet`, `RSpec/IdenticalEqualityAssertion`, `RSpec/IndexedLet`, `RSpec/IsExpectedSpecify`, `RSpec/MatchArray`, `RSpec/MetadataStyle`, `RSpec/NoExpectationExample`, `RSpec/PendingWithoutReason`, `RSpec/ReceiveMessages`, `RSpec/RedundantAround`, `RSpec/RedundantPredicateMatcher`, `RSpec/RemoveConst`, `RSpec/RepeatedSubjectCall`, `RSpec/SkipBlockInsideExample`, `RSpec/SortMetadata`, `RSpec/SpecFilePathFormat`, `RSpec/SpecFilePathSuffix`, `RSpec/SubjectDeclaration`, `RSpec/UndescriptiveLiteralsDescription`, and `RSpec/VerifiedDoubleReference`. + Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html ## 2.31.0 (2024-06-07) diff --git a/docs/antora.yml b/docs/antora.yml index 51a533a15..7b2f34b15 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -1,5 +1,5 @@ name: rubocop-rspec title: RuboCop RSpec -version: ~ +version: '3.0' nav: - modules/ROOT/nav.adoc diff --git a/lib/rubocop/rspec/version.rb b/lib/rubocop/rspec/version.rb index 08861d37c..92998daa8 100644 --- a/lib/rubocop/rspec/version.rb +++ b/lib/rubocop/rspec/version.rb @@ -4,7 +4,7 @@ module RuboCop module RSpec # Version information for the RSpec RuboCop plugin. module Version - STRING = '3.0.0.pre' + STRING = '3.0.0' end end end