config/default.yml in rubocop-rspec-2.0.0 vs config/default.yml in rubocop-rspec-2.0.1

- old
+ new

@@ -1,87 +1,87 @@ --- RSpec: Include: - - "**/*_spec.rb" - - "**/spec/**/*" + - "**/*_spec.rb" + - "**/spec/**/*" Language: ExampleGroups: Regular: - - describe - - context - - feature - - example_group + - describe + - context + - feature + - example_group Skipped: - - xdescribe - - xcontext - - xfeature + - xdescribe + - xcontext + - xfeature Focused: - - fdescribe - - fcontext - - ffeature + - fdescribe + - fcontext + - ffeature Examples: Regular: - - it - - specify - - example - - scenario - - its + - it + - specify + - example + - scenario + - its Focused: - - fit - - fspecify - - fexample - - fscenario - - focus + - fit + - fspecify + - fexample + - fscenario + - focus Skipped: - - xit - - xspecify - - xexample - - xscenario - - skip + - xit + - xspecify + - xexample + - xscenario + - skip Pending: - - pending + - pending Expectations: - - expect - - is_expected - - expect_any_instance_of + - expect + - is_expected + - expect_any_instance_of Helpers: - - let - - let! + - let + - let! Hooks: - - prepend_before - - before - - append_before - - around - - prepend_after - - after - - append_after + - prepend_before + - before + - append_before + - around + - prepend_after + - after + - append_after HookScopes: - - each - - example - - context - - all - - suite + - each + - example + - context + - all + - suite Includes: Examples: - - it_behaves_like - - it_should_behave_like - - include_examples + - it_behaves_like + - it_should_behave_like + - include_examples Context: - - include_context + - include_context Runners: - - to - - to_not - - not_to + - to + - to_not + - not_to SharedGroups: Examples: - - shared_examples - - shared_examples_for + - shared_examples + - shared_examples_for Context: - - shared_context + - shared_context Subjects: - - subject - - subject! + - subject + - subject! RSpec/AlignLeftLetBrace: Description: Checks that left braces for adjacent single line lets are aligned. Enabled: false VersionAdded: '1.16' @@ -119,13 +119,13 @@ RSpec/BeforeAfterAll: Description: Check that before/after(:all) isn't being used. Enabled: true Exclude: - - spec/spec_helper.rb - - spec/rails_helper.rb - - spec/support/**/*.rb + - spec/spec_helper.rb + - spec/rails_helper.rb + - spec/support/**/*.rb VersionAdded: '1.12' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/BeforeAfterAll RSpec/ContextMethod: Description: "`context` should not be used for specifying methods." @@ -135,35 +135,35 @@ RSpec/ContextWording: Description: Checks that `context` docstring starts with an allowed prefix. Enabled: true Prefixes: - - when - - with - - without + - when + - with + - without 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. Enabled: true IgnoredMetadata: type: - - channel - - controller - - helper - - job - - mailer - - model - - request - - routing - - view - - feature - - system - - mailbox - - aruba + - channel + - controller + - helper + - job + - mailer + - model + - request + - routing + - view + - feature + - system + - mailbox + - aruba VersionAdded: '1.0' VersionChanged: '1.44' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeClass RSpec/DescribeMethod: @@ -182,12 +182,12 @@ Description: Checks that tests use `described_class`. Enabled: true SkipBlocks: false EnforcedStyle: described_class SupportedStyles: - - described_class - - explicit + - described_class + - explicit SafeAutoCorrect: false VersionAdded: '1.0' VersionChanged: '1.11' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClass @@ -258,13 +258,13 @@ RSpec/ExampleWithoutDescription: Description: Checks for examples without a description. Enabled: true EnforcedStyle: always_allow SupportedStyles: - - always_allow - - single_line_only - - disallow + - always_allow + - single_line_only + - disallow VersionAdded: '1.22' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExampleWithoutDescription RSpec/ExampleWording: Description: Checks for common mistakes in example descriptions. @@ -281,21 +281,21 @@ RSpec/ExpectActual: Description: Checks for `expect(...)` calls containing literal values. Enabled: true Exclude: - - spec/routing/**/* + - spec/routing/**/* VersionAdded: '1.7' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectActual RSpec/ExpectChange: Description: Checks for consistent style of change matcher. Enabled: true EnforcedStyle: method_call SupportedStyles: - - method_call - - block + - method_call + - block VersionAdded: '1.22' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ExpectChange RSpec/ExpectInHook: Description: Do not use `expect` in hooks such as `before`. @@ -311,12 +311,12 @@ RSpec/FilePath: Description: Checks that spec file paths are consistent and well-formed. Enabled: true Include: - - "**/*_spec*rb*" - - "**/spec/**/*" + - "**/*_spec*rb*" + - "**/spec/**/*" CustomTransform: RuboCop: rubocop RSpec: rspec IgnoreMethods: false SpecSuffixOnly: false @@ -333,13 +333,13 @@ RSpec/HookArgument: Description: Checks the arguments passed to `before`, `around`, and `after`. Enabled: true EnforcedStyle: implicit SupportedStyles: - - implicit - - each - - example + - implicit + - each + - example VersionAdded: '1.7' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/HookArgument RSpec/HooksBeforeExamples: Description: Checks for before/around/after hooks that come after an example. @@ -356,23 +356,23 @@ RSpec/ImplicitExpect: Description: Check that a consistent implicit expectation style is used. Enabled: true EnforcedStyle: is_expected SupportedStyles: - - is_expected - - should + - is_expected + - should VersionAdded: '1.8' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ImplicitExpect RSpec/ImplicitSubject: Description: Checks for usage of implicit subject (`is_expected` / `should`). Enabled: true EnforcedStyle: single_line_only SupportedStyles: - - single_line_only - - single_statement_only - - disallow + - single_line_only + - single_statement_only + - disallow VersionAdded: '1.29' VersionChanged: '1.30' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ImplicitSubject RSpec/InstanceSpy: @@ -392,12 +392,12 @@ RSpec/ItBehavesLike: Description: Checks that only one `it_behaves_like` style is used. Enabled: true EnforcedStyle: it_behaves_like SupportedStyles: - - it_behaves_like - - it_should_behave_like + - it_behaves_like + - it_should_behave_like VersionAdded: '1.13' StyleGuide: https://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. @@ -440,23 +440,23 @@ RSpec/MessageExpectation: Description: Checks for consistent message expectation style. Enabled: false EnforcedStyle: allow SupportedStyles: - - allow - - expect + - allow + - expect VersionAdded: '1.7' VersionChanged: '1.8' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MessageExpectation RSpec/MessageSpies: Description: Checks that message expectations are set using spies. Enabled: true EnforcedStyle: have_received SupportedStyles: - - have_received - - receive + - have_received + - receive VersionAdded: '1.9' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/MessageSpies RSpec/MissingExampleGroupArgument: Description: Checks that the first argument to an example group is not empty. @@ -510,12 +510,12 @@ RSpec/NotToNot: Description: Checks for consistent method usage for negating expectations. Enabled: true EnforcedStyle: not_to SupportedStyles: - - not_to - - to_not + - not_to + - to_not VersionAdded: '1.4' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot RSpec/OverwritingSetup: Description: Checks if there is a let/subject that overwrites an existing one. @@ -534,12 +534,12 @@ Enabled: true Strict: true EnforcedStyle: inflected AllowedExplicitMatchers: [] SupportedStyles: - - inflected - - explicit + - inflected + - explicit SafeAutoCorrect: false VersionAdded: '1.16' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/PredicateMatcher RSpec/ReceiveCounts: @@ -587,12 +587,12 @@ RSpec/ReturnFromStub: Description: Checks for consistent style of stub's return setting. Enabled: true EnforcedStyle: and_return SupportedStyles: - - and_return - - block + - and_return + - block VersionAdded: '1.16' VersionChanged: '1.22' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ReturnFromStub RSpec/ScatteredLet: @@ -648,22 +648,22 @@ RSpec/VariableDefinition: Description: Checks that memoized helpers names are symbols or strings. Enabled: true EnforcedStyle: symbols SupportedStyles: - - symbols - - strings + - symbols + - strings VersionAdded: '1.40' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VariableDefinition RSpec/VariableName: Description: Checks that memoized helper names use the configured style. Enabled: true EnforcedStyle: snake_case SupportedStyles: - - snake_case - - camelCase + - snake_case + - camelCase IgnoredPatterns: [] VersionAdded: '1.40' VersionChanged: '1.43' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VariableName @@ -712,50 +712,50 @@ RSpec/FactoryBot/AttributeDefinedStatically: Description: Always declare attribute values as blocks. Enabled: true Include: - - spec/factories.rb - - spec/factories/**/*.rb - - features/support/factories/**/*.rb + - spec/factories.rb + - spec/factories/**/*.rb + - features/support/factories/**/*.rb VersionAdded: '1.28' VersionChanged: '2.0' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/AttributeDefinedStatically RSpec/FactoryBot/CreateList: Description: Checks for create_list usage. Enabled: true Include: - - "**/*_spec.rb" - - "**/spec/**/*" - - spec/factories.rb - - spec/factories/**/*.rb - - features/support/factories/**/*.rb + - "**/*_spec.rb" + - "**/spec/**/*" + - spec/factories.rb + - spec/factories/**/*.rb + - features/support/factories/**/*.rb EnforcedStyle: create_list SupportedStyles: - - create_list - - n_times + - create_list + - n_times VersionAdded: '1.25' VersionChanged: '2.0' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/CreateList RSpec/FactoryBot/FactoryClassName: Description: Use string value when setting the class attribute explicitly. Enabled: true Include: - - spec/factories.rb - - spec/factories/**/*.rb - - features/support/factories/**/*.rb + - spec/factories.rb + - spec/factories/**/*.rb + - features/support/factories/**/*.rb VersionAdded: '1.37' VersionChanged: '2.0' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/FactoryBot/FactoryClassName RSpec/Rails/HttpStatus: Description: Enforces use of symbolic or numeric value to describe HTTP status. Enabled: true EnforcedStyle: symbolic SupportedStyles: - - numeric - - symbolic + - numeric + - symbolic VersionAdded: '1.23' VersionChanged: '2.0' StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Rails/HttpStatus