config/default.yml in rubocop-rspec-2.15.0 vs config/default.yml in rubocop-rspec-2.16.0

- old
+ new

@@ -145,17 +145,21 @@ Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Be RSpec/BeEq: Description: Check for expectations where `be(...)` can replace `eq(...)`. Enabled: pending + Safe: false VersionAdded: 2.9.0 + VersionChanged: '2.16' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeEq RSpec/BeEql: Description: Check for expectations where `be(...)` can replace `eql(...)`. Enabled: true + Safe: false VersionAdded: '1.7' + VersionChanged: '2.16' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeEql RSpec/BeNil: Description: Ensures a consistent style is used when matching `nil`. Enabled: pending @@ -282,10 +286,16 @@ Enabled: false PreferredMethods: {} VersionAdded: '1.33' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Dialect +RSpec/DuplicatedMetadata: + Description: Avoid duplicated metadata. + Enabled: pending + VersionAdded: '2.16' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DuplicatedMetadata + RSpec/EmptyExampleGroup: Description: Checks if an example group does not include any tests. Enabled: true SafeAutoCorrect: false VersionAdded: '1.7' @@ -354,16 +364,10 @@ - single_line_only - disallow VersionAdded: '1.22' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleWithoutDescription -RSpec/ExcessiveDocstringSpacing: - Description: Checks for excessive whitespace in example descriptions. - Enabled: pending - VersionAdded: '2.5' - Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExcessiveDocstringSpacing - RSpec/ExampleWording: Description: Checks for common mistakes in example descriptions. Enabled: true CustomTransform: be: is @@ -376,10 +380,16 @@ VersionAdded: '1.0' VersionChanged: '2.13' StyleGuide: https://rspec.rubystyle.guide/#should-in-example-docstrings Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleWording +RSpec/ExcessiveDocstringSpacing: + Description: Checks for excessive whitespace in example descriptions. + Enabled: pending + VersionAdded: '2.5' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExcessiveDocstringSpacing + RSpec/ExpectActual: Description: Checks for `expect(...)` calls containing literal values. Enabled: true Exclude: - spec/routing/**/* @@ -662,10 +672,16 @@ Description: Checks for any pending or skipped examples. Enabled: false VersionAdded: '1.25' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Pending +RSpec/PendingWithoutReason: + Description: Checks for pending or skipped examples without reason. + Enabled: pending + VersionAdded: '2.16' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/PendingWithoutReason + RSpec/PredicateMatcher: Description: Prefer using predicate matcher over using predicate method directly. Enabled: true Strict: true EnforcedStyle: inflected @@ -958,10 +974,20 @@ - features/support/factories/**/*.rb VersionAdded: '1.37' VersionChanged: '2.0' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/FactoryClassName +RSpec/FactoryBot/FactoryNameStyle: + Description: Checks for name style for argument of FactoryBot::Syntax::Methods. + Enabled: pending + VersionAdded: '2.16' + EnforcedStyle: symbol + SupportedStyles: + - symbol + - string + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/FactoryNameStyle + RSpec/FactoryBot/SyntaxMethods: Description: Use shorthands from `FactoryBot::Syntax::Methods` in your specs. Enabled: pending SafeAutoCorrect: false VersionAdded: '2.7' @@ -983,10 +1009,21 @@ Enabled: pending SafeAutoCorrect: false VersionAdded: '2.12' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HaveHttpStatus +RSpec/Rails/HttpStatus: + Description: Enforces use of symbolic or numeric value to describe HTTP status. + Enabled: true + EnforcedStyle: symbolic + SupportedStyles: + - numeric + - symbolic + VersionAdded: '1.23' + VersionChanged: '2.0' + Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HttpStatus + RSpec/Rails/InferredSpecType: Description: Identifies redundant spec type. Enabled: pending Safe: false VersionAdded: '2.14' @@ -1005,16 +1042,5 @@ integration: request api: request routing: routing system: system views: view - -RSpec/Rails/HttpStatus: - Description: Enforces use of symbolic or numeric value to describe HTTP status. - Enabled: true - EnforcedStyle: symbolic - SupportedStyles: - - numeric - - symbolic - VersionAdded: '1.23' - VersionChanged: '2.0' - Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HttpStatus