config/default.yml in rubocop-rspec-1.42.0 vs config/default.yml in rubocop-rspec-1.43.0
- old
+ new
@@ -72,11 +72,11 @@
VersionAdded: '1.20'
VersionChanged: 1.20.1
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ContextWording
RSpec/DescribeClass:
- Description: Check that the first argument to the top level describe is a constant.
+ Description: Check that the first argument to the top-level describe is a constant.
Enabled: true
VersionAdded: '1.0'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeClass
RSpec/DescribeMethod:
@@ -379,11 +379,11 @@
Enabled: true
VersionAdded: '1.28'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MissingExampleGroupArgument
RSpec/MultipleDescribes:
- Description: Checks for multiple top level describes.
+ Description: Checks for multiple top-level example groups.
Enabled: true
VersionAdded: '1.0'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MultipleDescribes
RSpec/MultipleExpectations:
@@ -392,10 +392,18 @@
Max: 1
VersionAdded: '1.7'
VersionChanged: '1.21'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MultipleExpectations
+RSpec/MultipleMemoizedHelpers:
+ Description: Checks if example groups contain too many `let` and `subject` calls.
+ Enabled: true
+ AllowSubject: true
+ Max: 5
+ VersionAdded: '1.43'
+ StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MultipleMemoizedHelpers
+
RSpec/MultipleSubjects:
Description: Checks if an example group defines `subject` multiple times.
Enabled: true
VersionAdded: '1.16'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MultipleSubjects
@@ -556,10 +564,12 @@
Enabled: true
EnforcedStyle: snake_case
SupportedStyles:
- snake_case
- camelCase
+ IgnoredPatterns: []
VersionAdded: '1.40'
+ VersionChanged: '1.43'
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VariableName
RSpec/VerifiedDoubles:
Description: Prefer using verifying doubles over normal doubles.
Enabled: true