config/default.yml in rubocop-rspec-2.23.2 vs config/default.yml in rubocop-rspec-2.24.0
- old
+ new
@@ -357,10 +357,22 @@
Enabled: true
VersionAdded: '1.14'
StyleGuide: https://rspec.rubystyle.guide/#empty-line-after-let
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyLineAfterSubject
+RSpec/EmptyMetadata:
+ Description: Avoid empty metadata hash.
+ Enabled: pending
+ VersionAdded: '2.24'
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/EmptyMetadata
+
+RSpec/Eq:
+ Description: Use `eq` instead of `be ==` to compare objects.
+ Enabled: pending
+ VersionAdded: '2.24'
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Eq
+
RSpec/ExampleLength:
Description: Checks for long examples.
Enabled: true
Max: 5
CountAsOne: []
@@ -434,21 +446,21 @@
VersionAdded: '1.10'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectOutput
RSpec/FilePath:
Description: Checks that spec file paths are consistent and well-formed.
- Enabled: true
+ Enabled: false
Include:
- "**/*_spec*rb*"
- "**/spec/**/*"
CustomTransform:
RuboCop: rubocop
RSpec: rspec
IgnoreMethods: false
SpecSuffixOnly: false
VersionAdded: '1.2'
- VersionChanged: '1.40'
+ VersionChanged: '2.24'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FilePath
RSpec/Focus:
Description: Checks if examples are focused.
Enabled: true
@@ -611,10 +623,20 @@
- have_received
- receive
VersionAdded: '1.9'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MessageSpies
+RSpec/MetadataStyle:
+ Description: Use consistent metadata style.
+ Enabled: pending
+ EnforcedStyle: symbol
+ SupportedStyles:
+ - hash
+ - symbol
+ VersionAdded: '2.24'
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MetadataStyle
+
RSpec/MissingExampleGroupArgument:
Description: Checks that the first argument to an example group is not empty.
Enabled: true
VersionAdded: '1.28'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MissingExampleGroupArgument
@@ -831,9 +853,34 @@
RSpec/SortMetadata:
Description: Sort RSpec metadata alphabetically.
Enabled: pending
VersionAdded: '2.14'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SortMetadata
+
+RSpec/SpecFilePathFormat:
+ Description: Checks that spec file paths are consistent and well-formed.
+ Enabled: pending
+ Include:
+ - "**/*_spec.rb"
+ Exclude:
+ - "**/spec/routing/**/*"
+ CustomTransform:
+ RuboCop: rubocop
+ RSpec: rspec
+ IgnoreMethods: false
+ IgnoreMetadata:
+ type: routing
+ VersionAdded: '2.24'
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SpecFilePathFormat
+
+RSpec/SpecFilePathSuffix:
+ Description: Checks that spec file paths suffix are consistent and well-formed.
+ Enabled: pending
+ VersionAdded: '2.24'
+ Include:
+ - "**/*_spec*rb*"
+ - "**/spec/**/*"
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SpecFilePathSuffix
RSpec/StubbedMock:
Description: Checks that message expectations do not have a configured response.
Enabled: true
VersionAdded: '1.44'