config/default.yml in rubocop-rspec-1.29.1 vs config/default.yml in rubocop-rspec-1.30.0

- old
+ new

@@ -8,30 +8,30 @@ Patterns: - spec/factories.rb - spec/factories/**/*.rb - features/support/factories/**/*.rb -RSpec/AnyInstance: - Description: Check that instances are not being stubbed globally. - Enabled: true - StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AnyInstance - -RSpec/AroundBlock: - Description: Checks that around blocks actually run the test. - Enabled: true - StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AroundBlock - RSpec/AlignLeftLetBrace: Description: Checks that left braces for adjacent single line lets are aligned. Enabled: false StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AlignLeftLetBrace RSpec/AlignRightLetBrace: Description: Checks that right braces for adjacent single line lets are aligned. Enabled: false StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AlignRightLetBrace +RSpec/AnyInstance: + Description: Check that instances are not being stubbed globally. + Enabled: true + StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AnyInstance + +RSpec/AroundBlock: + Description: Checks that around blocks actually run the test. + Enabled: true + StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/AroundBlock + RSpec/Be: Description: Check for expectations where `be` is used without argument. Enabled: true StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Be @@ -61,34 +61,29 @@ RSpec/DescribeClass: Description: Check that the first argument to the top level describe is a constant. Enabled: true StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeClass -RSpec/DescribedClass: - Description: Checks that tests use `described_class`. - SkipBlocks: false - Enabled: true - EnforcedStyle: described_class - SupportedStyles: - - described_class - - explicit - StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass - RSpec/DescribeMethod: Description: Checks that the second argument to `describe` specifies a method. Enabled: true StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeMethod RSpec/DescribeSymbol: Description: Avoid describing symbols. Enabled: true StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeSymbol -RSpec/IteratedExpectation: - Description: Check that `all` matcher is used instead of iterating over an array. +RSpec/DescribedClass: + Description: Checks that tests use `described_class`. + SkipBlocks: false Enabled: true - StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IteratedExpectation + EnforcedStyle: described_class + SupportedStyles: + - described_class + - explicit + StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass RSpec/EmptyExampleGroup: Description: Checks if an example group does not include any tests. Enabled: true CustomIncludeMethods: [] @@ -209,10 +204,11 @@ Enabled: true Description: Checks for usage of implicit subject (`is_expected` / `should`). EnforcedStyle: single_line_only SupportedStyles: - single_line_only + - single_statement_only - disallow StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ImplicitSubject RSpec/InstanceSpy: Description: Checks for `instance_double` used with `have_received`. @@ -237,10 +233,15 @@ SupportedStyles: - it_behaves_like - it_should_behave_like StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ItBehavesLike +RSpec/IteratedExpectation: + Description: Check that `all` matcher is used instead of iterating over an array. + Enabled: true + StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/IteratedExpectation + RSpec/LeadingSubject: Description: Enforce that subject is the first definition in the test. Enabled: true StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/LeadingSubject @@ -327,10 +328,20 @@ RSpec/Pending: Enabled: false Description: Checks for any pending or skipped examples. StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Pending +RSpec/PredicateMatcher: + Description: Prefer using predicate matcher over using predicate method directly. + Enabled: true + Strict: true + EnforcedStyle: inflected + SupportedStyles: + - inflected + - explicit + StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/PredicateMatcher + RSpec/ReceiveCounts: Enabled: true Description: Check for `once` and `twice` receive counts matchers usage. StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReceiveCounts @@ -356,10 +367,20 @@ SupportedStyles: - and_return - block StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReturnFromStub +RSpec/ScatteredLet: + Description: Checks for let scattered across the example group. + Enabled: true + StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredLet + +RSpec/ScatteredSetup: + Description: Checks for setup scattered across multiple hooks in an example group. + Enabled: true + StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredSetup + RSpec/SharedContext: Description: Checks for proper shared_context and shared_examples usage. Enabled: true StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SharedContext @@ -371,37 +392,23 @@ RSpec/SingleArgumentMessageChain: Description: Checks that chains of messages contain more than one element. Enabled: true StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SingleArgumentMessageChain -RSpec/ScatteredLet: - Description: Checks for let scattered across the example group. - Enabled: true - StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredLet - -RSpec/ScatteredSetup: - Description: Checks for setup scattered across multiple hooks in an example group. - Enabled: true - StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ScatteredSetup - RSpec/SubjectStub: Description: Checks for stubbed test subjects. Enabled: true StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/SubjectStub -RSpec/PredicateMatcher: - Description: Prefer using predicate matcher over using predicate method directly. +RSpec/UnspecifiedException: + Description: Checks for a specified error in checking raised errors. Enabled: true - Strict: true - EnforcedStyle: inflected - SupportedStyles: - - inflected - - explicit - StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/PredicateMatcher + StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/UnspecifiedException RSpec/VerifiedDoubles: Description: Prefer using verifying doubles over normal doubles. Enabled: true + IgnoreNameless: true IgnoreSymbolicNames: false StyleGuide: http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VerifiedDoubles RSpec/VoidExpect: Description: This cop checks void `expect()`.