# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-01-09 17:43:27 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: 1
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
  Exclude:
    - 'rspec-support.gemspec'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, IndentationWidth.
# SupportedStyles: with_first_argument, with_fixed_indentation
Layout/ArgumentAlignment:
  Exclude:
    - 'spec/rspec/support_spec.rb'

# Offense count: 17
# Cop supports --auto-correct.
Layout/EmptyLineAfterGuardClause:
  Exclude:
    - 'benchmarks/caller_vs_caller_locations_vs_raise.rb'
    - 'lib/rspec/support.rb'
    - 'lib/rspec/support/differ.rb'
    - 'lib/rspec/support/method_signature_verifier.rb'
    - 'lib/rspec/support/mutex.rb'
    - 'lib/rspec/support/recursive_const_methods.rb'
    - 'lib/rspec/support/reentrant_mutex.rb'
    - 'lib/rspec/support/source.rb'
    - 'lib/rspec/support/source/location.rb'
    - 'lib/rspec/support/source/token.rb'
    - 'lib/rspec/support/spec/library_wide_checks.rb'
    - 'lib/rspec/support/spec/stderr_splitter.rb'

# Offense count: 3
# Cop supports --auto-correct.
Layout/EmptyLines:
  Exclude:
    - 'benchmarks/caller.rb'
    - 'spec/rspec/support/differ_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: AllowAliasSyntax, AllowedMethods.
# AllowedMethods: alias_method, public, protected, private
Layout/EmptyLinesAroundAttributeAccessor:
  Exclude:
    - 'spec/rspec/support/fuzzy_matcher_spec.rb'
    - 'spec/rspec/support/method_signature_verifier_spec.rb'

# Offense count: 8
# 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/support/source/token.rb'
    - 'rspec-support.gemspec'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: normal, indented_internal_methods
Layout/IndentationConsistency:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'

# Offense count: 6
# Cop supports --auto-correct.
# Configuration parameters: Width, IgnoredPatterns.
Layout/IndentationWidth:
  Exclude:
    - 'lib/rspec/support/method_signature_verifier.rb'
    - 'lib/rspec/support/ruby_features.rb'

# Offense count: 50
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
  Max: 156

# Offense count: 13
# Cop supports --auto-correct.
Layout/SpaceAfterComma:
  Exclude:
    - 'rspec-support.gemspec'
    - 'spec/rspec/support/differ_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: space, no_space
Layout/SpaceAroundEqualsInParameterDefault:
  Exclude:
    - 'spec/rspec/support/encoded_string_spec.rb'
    - 'spec/rspec/support/method_signature_verifier_spec.rb'

# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBrackets: space, no_space
Layout/SpaceInsideArrayLiteralBrackets:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'
    - 'spec/rspec/support/fuzzy_matcher_spec.rb'

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

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBrackets.
# SupportedStyles: space, no_space
# SupportedStylesForEmptyBrackets: space, no_space
Layout/SpaceInsideReferenceBrackets:
  Exclude:
    - 'benchmarks/map_hash.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: final_newline, final_blank_line
Layout/TrailingEmptyLines:
  Exclude:
    - 'spec/rspec/support/fuzzy_matcher_spec.rb'

# Offense count: 4
Lint/AmbiguousBlockAssociation:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'
    - 'spec/rspec/support/encoded_string_spec.rb'
    - 'spec/rspec/support/ruby_features_spec.rb'
    - 'spec/rspec/support_spec.rb'

# Offense count: 2
Lint/BinaryOperatorWithIdenticalOperands:
  Exclude:
    - 'spec/rspec/support/object_formatter_spec.rb'
    - 'spec/rspec/support/source/token_spec.rb'

# Offense count: 3
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
  Exclude:
    - 'spec/rspec/support/fuzzy_matcher_spec.rb'
    - 'spec/rspec/support/recursive_const_methods_spec.rb'
    - 'spec/rspec/support/spec/in_sub_process_spec.rb'

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

# Offense count: 1
# Cop supports --auto-correct.
Lint/RedundantCopDisableDirective:
  Exclude:
    - 'lib/rspec/support/spec/in_sub_process.rb'

# Offense count: 1
Lint/StructNewOverride:
  Exclude:
    - 'spec/rspec/support_spec.rb'

# Offense count: 3
# Configuration parameters: AllowComments.
Lint/SuppressedException:
  Exclude:
    - 'spec/rspec/support_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
Lint/UselessAccessModifier:
  Exclude:
    - 'lib/rspec/support/encoded_string.rb'

# Offense count: 12
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
# IgnoredMethods: refine
Metrics/BlockLength:
  Max: 834

# Offense count: 8
# Configuration parameters: CountComments, CountAsOne.
Metrics/ModuleLength:
  Max: 836

# Offense count: 1
# Configuration parameters: IgnoredMethods.
Metrics/PerceivedComplexity:
  Max: 10

# Offense count: 6
# 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_caller_locations_vs_raise.rb'
    - 'spec/rspec/support/method_signature_verifier_spec.rb'

# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: PreferredName.
Naming/RescuedExceptionsVariableName:
  Exclude:
    - 'benchmarks/caller_vs_caller_locations_vs_raise.rb'
    - 'lib/rspec/support.rb'
    - 'lib/rspec/support/spec/in_sub_process.rb'

# Offense count: 1
Security/Eval:
  Exclude:
    - 'Gemfile'

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'
    - 'spec/rspec/support/object_formatter_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/CaseLikeIf:
  Exclude:
    - 'lib/rspec/support/directory_maker.rb'

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Exclude:
    - 'spec/rspec/support/comparable_version_spec.rb'
    - 'spec/rspec/support/directory_maker_spec.rb'
    - 'spec/rspec/support/encoded_string_spec.rb'
    - 'spec/rspec/support/source/node_spec.rb'
    - 'spec/rspec/support/source/token_spec.rb'
    - 'spec/rspec/support/source_spec.rb'
    - 'spec/rspec/support/with_keywords_when_needed_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
# IgnoredMethods: ==, equal?, eql?
Style/ClassEqualityComparison:
  Exclude:
    - 'lib/rspec/support/comparable_version.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/ColonMethodCall:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/EmptyLiteral:
  Exclude:
    - 'spec/rspec/support/method_signature_verifier_spec.rb'

# Offense count: 3
# Cop supports --auto-correct.
Style/Encoding:
  Exclude:
    - 'rspec-support.gemspec'
    - 'spec/rspec/support/differ_spec.rb'
    - 'spec/rspec/support/encoded_string_spec.rb'

# Offense count: 4
# Cop supports --auto-correct.
Style/ExpandPathArguments:
  Exclude:
    - 'Gemfile'
    - 'benchmarks/caller.rb'
    - 'rspec-support.gemspec'
    - 'spec/rspec/support/caller_filter_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: format, sprintf, percent
Style/FormatString:
  Exclude:
    - 'spec/rspec/support/encoded_string_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/GlobalStdStream:
  Exclude:
    - 'spec/rspec/support/spec/stderr_splitter_spec.rb'

# Offense count: 3
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
  Exclude:
    - 'spec/rspec/support/caller_filter_spec.rb'
    - 'spec/rspec/support/spec/stderr_splitter_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, UseHashRocketsWithSymbolValues, PreferHashRocketsForNonAlnumEndingSymbols.
# SupportedStyles: ruby19, hash_rockets, no_mixed_keys, ruby19_no_mixed_keys
Style/HashSyntax:
  Exclude:
    - 'benchmarks/class_exec_vs_klass_exec.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/LineEndConcatenation:
  Exclude:
    - 'spec/rspec/support_spec.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: IgnoredMethods.
Style/MethodCallWithoutArgsParentheses:
  Exclude:
    - 'spec/rspec/support/method_signature_verifier_spec.rb'

# Offense count: 8
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'
    - 'spec/rspec/support/object_formatter_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: Strict.
Style/NumericLiterals:
  MinDigits: 6

# Offense count: 1
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'lib/rspec/support/spec/in_sub_process.rb'

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: PreferredDelimiters.
Style/PercentLiteralDelimiters:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'
    - 'spec/rspec/support/object_formatter_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: lower_case_q, upper_case_q
Style/PercentQLiterals:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/RedundantPercentQ:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'

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

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
  Exclude:
    - 'spec/rspec/support/fuzzy_matcher_spec.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
  Exclude:
    - 'spec/rspec/support/differ_spec.rb'
    - 'spec/rspec/support/fuzzy_matcher_spec.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: WordRegex.
# SupportedStyles: percent, brackets
Style/WordArray:
  EnforcedStyle: percent
  MinSize: 3
