# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-01-09 00:30:11 UTC using RuboCop version 1.11.0.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/ArgumentAlignment:
  Exclude:
    - 'spec/rspec/expectations/handler_spec.rb'
    - 'spec/rspec/expectations_spec.rb'
    - 'spec/rspec/matchers/built_in/yield_spec.rb'

# Offense count: 15
# Cop supports --auto-correct.
Layout/ClosingHeredocIndentation:
  Exclude:
    - 'lib/rspec/matchers/built_in/equal.rb'
    - 'lib/rspec/matchers/generated_descriptions.rb'
    - 'spec/rspec/matchers/built_in/all_spec.rb'
    - 'spec/rspec/matchers/built_in/contain_exactly_spec.rb'
    - 'spec/rspec/matchers/built_in/equal_spec.rb'

# Offense count: 68
# Cop supports --auto-correct.
Layout/EmptyLineAfterGuardClause:
  Enabled: false

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
# AllowedMethods: alias_method, public, protected, private
Layout/EmptyLinesAroundAttributeAccessor:
  Exclude:
    - 'lib/rspec/expectations/configuration.rb'
    - 'spec/rspec/matchers/built_in/be_between_spec.rb'

# Offense count: 17
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: consistent, consistent_relative_to_receiver, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
Layout/FirstArgumentIndentation:
  Exclude:
    - 'spec/rspec/expectations/failure_aggregator_spec.rb'
    - 'spec/rspec/matchers/aliases_spec.rb'
    - 'spec/rspec/matchers/built_in/compound_spec.rb'
    - 'spec/rspec/matchers/composable_spec.rb'
    - 'spec/rspec/matchers/expecteds_for_multiple_diffs_spec.rb'
    - 'spec/rspec/matchers_spec.rb'

# Offense count: 12
# Cop supports --auto-correct.
# Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle.
# SupportedHashRocketStyles: key, separator, table
# SupportedColonStyles: key, separator, table
# SupportedLastArgumentHashStyles: always_inspect, always_ignore, ignore_implicit, ignore_explicit
Layout/HashAlignment:
  Exclude:
    - 'lib/rspec/expectations/configuration.rb'
    - 'rspec-expectations.gemspec'
    - 'spec/rspec/expectations/handler_spec.rb'
    - 'spec/rspec/matchers/composable_spec.rb'
    - 'spec/rspec/matchers/description_generation_spec.rb'

# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: Width, IgnoredPatterns.
Layout/IndentationWidth:
  Exclude:
    - 'lib/rspec/matchers/built_in/be.rb'
    - 'lib/rspec/matchers/built_in/be_kind_of.rb'
    - 'lib/rspec/matchers/built_in/start_or_end_with.rb'
    - 'lib/rspec/matchers/dsl.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideHashLiteralBraces:
  Exclude:
    - 'spec/rspec/matchers/built_in/be_spec.rb'

# Offense count: 10
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
  Exclude:
    - 'spec/rspec/matchers/built_in/be_between_spec.rb'
    - 'spec/rspec/matchers/built_in/be_spec.rb'
    - 'spec/rspec/matchers/built_in/have_attributes_spec.rb'
    - 'spec/rspec/matchers/built_in/include_spec.rb'
    - 'spec/rspec/matchers/built_in/raise_error_spec.rb'
    - 'spec/rspec/matchers/description_generation_spec.rb'
    - 'spec/rspec/matchers/expecteds_for_multiple_diffs_spec.rb'

# Offense count: 2
Lint/FloatComparison:
  Exclude:
    - 'spec/rspec/matchers/built_in/operators_spec.rb'
    - 'spec/spec_helper.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowedImplicitNamespaces.
# AllowedImplicitNamespaces: Gem
Lint/RaiseException:
  Exclude:
    - 'spec/rspec/matchers/dsl_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
Lint/RedundantCopDisableDirective:
  Exclude:
    - 'spec/rspec/matchers/built_in/change_spec.rb'
    - 'spec/rspec/matchers/dsl_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Lint/RedundantRequireStatement:
  Exclude:
    - 'spec/rspec/matchers/built_in/eq_spec.rb'

# Offense count: 2
Lint/StructNewOverride:
  Exclude:
    - 'spec/rspec/expectations/syntax_spec.rb'

# Offense count: 1
# Configuration parameters: AllowComments.
Lint/SuppressedException:
  Exclude:
    - 'benchmarks/**/*'
    - 'spec/rspec/matchers/dsl_spec.rb'

# Offense count: 3
# Configuration parameters: IgnoredPatterns.
# IgnoredPatterns: (?-mix:(exactly|at_least|at_most)\(\d+\)\.times)
Lint/UnreachableLoop:
  Exclude:
    - 'spec/rspec/matchers/dsl_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: IgnoreEmptyBlocks, AllowUnusedKeywordArguments.
Lint/UnusedBlockArgument:
  Exclude:
    - 'spec/rspec/matchers/built_in/be_spec.rb'

# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods, IgnoreNotImplementedMethods.
Lint/UnusedMethodArgument:
  Exclude:
    - 'spec/rspec/expectations/failure_aggregator_spec.rb'
    - 'spec/rspec/matchers/built_in/be_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowComments.
Lint/UselessMethodDefinition:
  Exclude:
    - 'lib/rspec/matchers.rb'

# Offense count: 3
# Cop supports --auto-correct.
Lint/UselessTimes:
  Exclude:
    - 'spec/rspec/matchers/built_in/yield_spec.rb'

# Offense count: 1
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
  Max: 27

# Offense count: 69
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
  Exclude:
    - 'benchmarks/caller_vs_raise_for_backtrace.rb'
    - 'benchmarks/method_to_proc.rb'
    - 'lib/rspec/expectations/minitest_integration.rb'
    - 'lib/rspec/matchers/built_in/count_expectation.rb'
    - 'lib/rspec/matchers/built_in/equal.rb'
    - 'lib/rspec/matchers/built_in/operators.rb'
    - 'lib/rspec/matchers/built_in/respond_to.rb'
    - 'spec/rspec/matchers/aliased_matcher_spec.rb'
    - 'spec/rspec/matchers/built_in/equal_spec.rb'
    - 'spec/rspec/matchers/built_in/respond_to_spec.rb'
    - 'spec/rspec/matchers/dsl_spec.rb'

# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: PreferredName.
Naming/RescuedExceptionsVariableName:
  Exclude:
    - 'lib/rspec/matchers/built_in/base_matcher.rb'
    - 'lib/rspec/matchers/built_in/raise_error.rb'
    - 'lib/rspec/matchers/built_in/throw_symbol.rb'
    - 'lib/rspec/matchers/dsl.rb'

# Offense count: 1
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
# SupportedStyles: inline, group
Style/AccessModifierDeclarations:
  Exclude:
    - 'lib/rspec/matchers/built_in/base_matcher.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
  Exclude:
    - 'spec/rspec/matchers/built_in/has_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/CaseLikeIf:
  Exclude:
    - 'lib/rspec/matchers/built_in/has.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
# IgnoredMethods: ==, equal?, eql?
Style/ClassEqualityComparison:
  Exclude:
    - 'spec/rspec/matchers/aliases_spec.rb'
    - 'spec/support/matchers.rb'

# Offense count: 11
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
Style/CommentAnnotation:
  Exclude:
    - 'lib/rspec/expectations/handler.rb'
    - 'spec/rspec/matchers/built_in/respond_to_spec.rb'
    - 'spec/rspec/matchers/dsl_spec.rb'
    - 'spec/support/shared_examples/block_matcher.rb'
    - 'spec/support/shared_examples/matcher.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/EmptyLiteral:
  Exclude:
    - 'spec/rspec/matchers/built_in/include_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/ExpandPathArguments:
  Exclude:
    - 'Gemfile'
    - 'rspec-expectations.gemspec'

# Offense count: 2
# Cop supports --auto-correct.
Style/ExplicitBlockArgument:
  Exclude:
    - 'spec/rspec/matchers/built_in/all_spec.rb'
    - 'spec/rspec/matchers/built_in/contain_exactly_spec.rb'

# Offense count: 5
# Cop supports --auto-correct.
Style/GlobalStdStream:
  Exclude:
    - 'spec/rspec/matchers/built_in/change_spec.rb'
    - 'spec/rspec/matchers/composable_spec.rb'

# Offense count: 7
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'lib/rspec/matchers/built_in/contain_exactly.rb'
    - 'lib/rspec/matchers/built_in/has.rb'
    - 'lib/rspec/matchers/built_in/raise_error.rb'
    - 'lib/rspec/matchers/dsl.rb'
    - 'lib/rspec/matchers/matcher_delegator.rb'
    - 'spec/rspec/matchers/built_in/compound_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
  Exclude:
    - 'spec/spec_helper.rb'

# Offense count: 24
# Cop supports --auto-correct.
Style/RedundantRegexpEscape:
  Exclude:
    - 'lib/rspec/matchers/built_in/throw_symbol.rb'
    - 'spec/rspec/matchers/built_in/raise_error_spec.rb'
    - 'spec/rspec/matchers/composable_spec.rb'
    - 'spec/rspec/matchers/dsl_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantSelf:
  Exclude:
    - 'spec/rspec/matchers/built_in/be_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods.
# AllowedMethods: present?, blank?, presence, try, try!
Style/SafeNavigation:
  Exclude:
    - 'lib/rspec/matchers/built_in/operators.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
  Exclude:
    - 'spec/rspec/expectations/failure_aggregator_spec.rb'

# Offense count: 7
# Cop supports --auto-correct.
Style/StringConcatenation:
  Exclude:
    - 'lib/rspec/matchers/built_in/all.rb'
    - 'lib/rspec/matchers/built_in/be.rb'
    - 'lib/rspec/matchers/built_in/compound.rb'
    - 'lib/rspec/matchers/built_in/contain_exactly.rb'
    - 'lib/rspec/matchers/built_in/yield.rb'
    - 'spec/rspec/matchers/aliased_matcher_spec.rb'
