config/default.yml in rubocop-rspec-2.10.0 vs config/default.yml in rubocop-rspec-2.11.0
- old
+ new
@@ -108,10 +108,18 @@
- shared_context
Subjects:
- subject
- subject!
+Metrics/BlockLength:
+ inherit_mode:
+ merge:
+ - Exclude
+ Exclude:
+ - "**/*_spec.rb"
+ - "**/spec/**/*"
+
RSpec/AlignLeftLetBrace:
Description: Checks that left braces for adjacent single line lets are aligned.
Enabled: false
VersionAdded: '1.16'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AlignLeftLetBrace
@@ -174,10 +182,16 @@
- spec/support/**/*.rb
VersionAdded: '1.12'
StyleGuide: https://rspec.rubystyle.guide/#avoid-hooks-with-context-scope
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeforeAfterAll
+RSpec/ChangeByZero:
+ Description: Prefer negated matchers over `to change.by(0)`.
+ Enabled: pending
+ VersionAdded: 2.11.0
+ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ChangeByZero
+
RSpec/ContextMethod:
Description: "`context` should not be used for specifying methods."
Enabled: true
VersionAdded: '1.36'
StyleGuide: https://rspec.rubystyle.guide/#example-group-naming
@@ -254,11 +268,11 @@
Enabled: false
VersionAdded: '1.37'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClassModuleWrapping
RSpec/Dialect:
- Description: This cop enforces custom RSpec dialects.
+ Description: Enforces custom RSpec dialects.
Enabled: false
PreferredMethods: {}
VersionAdded: '1.33'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Dialect
@@ -785,16 +799,16 @@
VersionChanged: '1.5'
StyleGuide: https://rspec.rubystyle.guide/#doubles
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VerifiedDoubles
RSpec/VoidExpect:
- Description: This cop checks void `expect()`.
+ Description: Checks void `expect()`.
Enabled: true
VersionAdded: '1.16'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VoidExpect
RSpec/Yield:
- Description: This cop checks for calling a block within a stub.
+ Description: Checks for calling a block within a stub.
Enabled: true
VersionAdded: '1.32'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Yield
RSpec/Capybara: