# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2022-01-09 17:32: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: **/*.gemfile, **/Gemfile, **/gems.rb
Bundler/DuplicatedGem:
  Exclude:
    - 'Gemfile'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
Bundler/OrderedGems:
  Exclude:
    - 'Gemfile'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemspec
Gemspec/OrderedDependencies:
  Exclude:
    - 'rspec-mocks.gemspec'

# Offense count: 1
# Configuration parameters: Include.
# Include: **/*.gemspec
Gemspec/RequiredRubyVersion:
  Exclude:
    - 'rspec-mocks.gemspec'

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

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleAlignWith.
# SupportedStylesAlignWith: either, start_of_block, start_of_line
Layout/BlockAlignment:
  Exclude:
    - 'spec/rspec/mocks/any_instance_spec.rb'

# Offense count: 37
# 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:
    - 'spec/rspec/mocks/double_spec.rb'
    - 'spec/rspec/mocks/partial_double_spec.rb'

# Offense count: 6
# 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:
    - 'lib/rspec/mocks/error_generator.rb'
    - 'spec/rspec/mocks/nil_expectation_warning_spec.rb'
    - 'spec/rspec/mocks/partial_double_spec.rb'
    - 'spec/rspec/mocks/stubbed_message_expectations_spec.rb'

# Offense count: 5
# 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/mocks/method_double.rb'
    - 'rspec-mocks.gemspec'

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

# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: Width, IgnoredPatterns.
Layout/IndentationWidth:
  Exclude:
    - 'lib/rspec/mocks/any_instance/expectation_chain.rb'
    - 'lib/rspec/mocks/method_reference.rb'
    - 'lib/rspec/mocks/test_double.rb'
    - 'spec/rspec/mocks/matchers/receive_spec.rb'
    - 'spec/rspec/mocks_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Layout/LeadingEmptyLines:
  Exclude:
    - 'spec/rspec/mocks/space_spec.rb'

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

# Offense count: 3
# Cop supports --auto-correct.
Layout/SpaceAfterComma:
  Exclude:
    - 'spec/rspec/mocks/array_including_matcher_spec.rb'

# Offense count: 43
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
# SupportedStyles: space, no_space, compact
# SupportedStylesForEmptyBraces: space, no_space
Layout/SpaceInsideHashLiteralBraces:
  Exclude:
    - 'spec/rspec/mocks/argument_matchers_spec.rb'
    - 'spec/rspec/mocks/diffing_spec.rb'
    - 'spec/rspec/mocks/hash_excluding_matcher_spec.rb'
    - 'spec/rspec/mocks/hash_including_matcher_spec.rb'
    - 'spec/rspec/mocks/should_syntax_spec.rb'

# Offense count: 44
Lint/AmbiguousBlockAssociation:
  Exclude:
    - 'spec/rspec/mocks/and_call_original_spec.rb'
    - 'spec/rspec/mocks/and_wrap_original_spec.rb'
    - 'spec/rspec/mocks/any_instance_spec.rb'
    - 'spec/rspec/mocks/argument_matchers_spec.rb'
    - 'spec/rspec/mocks/block_return_value_spec.rb'
    - 'spec/rspec/mocks/combining_implementation_instructions_spec.rb'
    - 'spec/rspec/mocks/double_spec.rb'
    - 'spec/rspec/mocks/matchers/receive_spec.rb'
    - 'spec/rspec/mocks/serialization_spec.rb'
    - 'spec/rspec/mocks/space_spec.rb'
    - 'spec/rspec/mocks/stub_spec.rb'
    - 'spec/rspec/mocks/stubbed_message_expectations_spec.rb'

# Offense count: 3
# Cop supports --auto-correct.
Lint/AmbiguousRegexpLiteral:
  Exclude:
    - 'features/step_definitions/additional_cli_steps.rb'

# Offense count: 20
# Configuration parameters: AllowedMethods.
# AllowedMethods: enums
Lint/ConstantDefinitionInBlock:
  Exclude:
    - 'spec/rspec/mocks/any_instance_spec.rb'
    - 'spec/rspec/mocks/argument_matchers_spec.rb'
    - 'spec/rspec/mocks/double_spec.rb'
    - 'spec/rspec/mocks/expiration_spec.rb'
    - 'spec/rspec/mocks/instance_method_stasher_spec.rb'
    - 'spec/rspec/mocks/marshal_extension_spec.rb'
    - 'spec/rspec/mocks/matchers/have_received_spec.rb'
    - 'spec/rspec/mocks/mock_expectation_error_spec.rb'
    - 'spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb'
    - 'spec/rspec/mocks/serialization_spec.rb'
    - 'spec/rspec/mocks/spy_spec.rb'
    - 'spec/rspec/mocks/stub_spec.rb'
    - 'spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb'
    - 'spec/rspec/mocks/verifying_doubles/construction_spec.rb'
    - 'spec/rspec/mocks/verifying_doubles/instance_double_with_class_loaded_spec.rb'

# Offense count: 1
Lint/DuplicateRequire:
  Exclude:
    - 'spec/spec_helper.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: runtime_error, standard_error
Lint/InheritException:
  Exclude:
    - 'lib/rspec/mocks/error_generator.rb'

# Offense count: 1
# Cop supports --auto-correct.
Lint/RedundantStringCoercion:
  Exclude:
    - 'spec/rspec/mocks/message_expectation_string_representation_spec.rb'

# Offense count: 2
Lint/RescueException:
  Exclude:
    - 'spec/rspec/mocks/should_syntax_spec.rb'
    - 'spec/rspec/mocks_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Lint/SendWithMixinArgument:
  Exclude:
    - 'lib/rspec/mocks/minitest_integration.rb'

# Offense count: 1
Lint/ShadowingOuterLocalVariable:
  Exclude:
    - 'benchmarks/each_value_v_values_each.rb'

# Offense count: 2
Lint/StructNewOverride:
  Exclude:
    - 'spec/rspec/mocks/and_call_original_spec.rb'
    - 'spec/rspec/mocks/any_instance_spec.rb'

# Offense count: 5
# Configuration parameters: AllowComments.
Lint/SuppressedException:
  Exclude:
    - 'spec/rspec/mocks/any_instance_spec.rb'
    - 'spec/rspec/mocks/mock_expectation_error_spec.rb'
    - 'spec/rspec/mocks/should_syntax_spec.rb'
    - 'spec/rspec/mocks_spec.rb'
    - 'spec/spec_helper.rb'

# Offense count: 2
# Cop supports --auto-correct.
# Configuration parameters: ContextCreatingMethods, MethodCreatingMethods.
Lint/UselessAccessModifier:
  Exclude:
    - 'lib/rspec/mocks/method_double.rb'

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

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

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

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

# Offense count: 23
# Configuration parameters: MinNameLength, AllowNamesEndingInNumbers, AllowedNames, ForbiddenNames.
# AllowedNames: at, by, db, id, in, io, ip, of, on, os, pp, to
Naming/MethodParameterName:
  Exclude:
    - 'lib/rspec/mocks/message_expectation.rb'
    - 'spec/rspec/mocks/and_call_original_spec.rb'
    - 'spec/rspec/mocks/any_instance_spec.rb'
    - 'spec/rspec/mocks/partial_double_spec.rb'
    - 'spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb'
    - 'spec/rspec/mocks/should_syntax_spec.rb'
    - 'spec/rspec/mocks/verifying_doubles/class_double_with_class_loaded_spec.rb'
    - 'spec/support/doubled_classes.rb'

# Offense count: 3
# Cop supports --auto-correct.
# Configuration parameters: PreferredName.
Naming/RescuedExceptionsVariableName:
  Exclude:
    - 'lib/rspec/mocks/error_generator.rb'
    - 'spec/rspec/mocks/matchers/receive_messages_spec.rb'
    - 'spec/rspec/mocks_spec.rb'

# Offense count: 2
Security/Eval:
  Exclude:
    - 'Gemfile'
    - 'spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb'

# Offense count: 5
Security/MarshalLoad:
  Exclude:
    - 'spec/rspec/mocks/marshal_extension_spec.rb'

# Offense count: 4
# Configuration parameters: EnforcedStyle, AllowModifiersOnSymbols.
# SupportedStyles: inline, group
Style/AccessModifierDeclarations:
  Exclude:
    - 'benchmarks/method_defined_at_any_visibility.rb'
    - 'spec/rspec/mocks/stub_spec.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: separated, grouped
Style/AccessorGrouping:
  Exclude:
    - 'lib/rspec/mocks/message_expectation.rb'
    - 'lib/rspec/mocks/proxy.rb'

# Offense count: 10
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: percent_q, bare_percent
Style/BarePercentLiterals:
  Exclude:
    - 'spec/rspec/mocks/double_spec.rb'
    - 'spec/rspec/mocks/matchers/receive_messages_spec.rb'
    - 'spec/rspec/mocks/partial_double_spec.rb'
    - 'spec/rspec/mocks/stubbed_message_expectations_spec.rb'
    - 'spec/rspec/mocks/verifying_doubles/naming_spec.rb'

# Offense count: 3
# Cop supports --auto-correct.
Style/BlockComments:
  Exclude:
    - 'benchmarks/find_original_method_early.rb'
    - 'benchmarks/method_defined_at_any_visibility.rb'

# Offense count: 5
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: nested, compact
Style/ClassAndModuleChildren:
  Exclude:
    - 'spec/rspec/mocks/any_instance_spec.rb'
    - 'spec/rspec/mocks/matchers/receive_message_chain_spec.rb'
    - 'spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb'
    - 'spec/rspec/mocks/space_spec.rb'

# Offense count: 1
Style/CombinableLoops:
  Exclude:
    - 'benchmarks/allocations/1_object_1000_mocks.rb'

# Offense count: 4
# Cop supports --auto-correct.
# Configuration parameters: Keywords.
# Keywords: TODO, FIXME, OPTIMIZE, HACK, REVIEW, NOTE
Style/CommentAnnotation:
  Exclude:
    - 'spec/rspec/mocks/and_call_original_spec.rb'
    - 'spec/rspec/mocks/double_spec.rb'
    - 'spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/CommentedKeyword:
  Exclude:
    - 'spec/rspec/mocks/matchers/receive_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/EachForSimpleLoop:
  Exclude:
    - 'spec/rspec/mocks/double_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/Encoding:
  Exclude:
    - 'rspec-mocks.gemspec'

# Offense count: 9
# Cop supports --auto-correct.
Style/EvalWithLocation:
  Exclude:
    - 'spec/rspec/mocks/and_yield_spec.rb'
    - 'spec/rspec/mocks/double_spec.rb'
    - 'spec/rspec/mocks/should_syntax_spec.rb'
    - 'spec/rspec/mocks/verifying_doubles/expected_arg_verification_spec.rb'
    - 'spec/rspec/mocks/verifying_doubles/method_visibility_spec.rb'
    - 'spec/support/doubled_classes.rb'

# Offense count: 6
# Cop supports --auto-correct.
Style/ExpandPathArguments:
  Exclude:
    - 'Gemfile'
    - 'benchmarks/allocations/helper.rb'
    - 'benchmarks/double_creation.rb'
    - 'benchmarks/thread_safety.rb'
    - 'benchmarks/transfer_nested_constants.rb'
    - 'rspec-mocks.gemspec'

# Offense count: 2
# Cop supports --auto-correct.
Style/ExplicitBlockArgument:
  Exclude:
    - 'benchmarks/allocations/helper.rb'
    - 'spec/rspec/mocks/partial_double_spec.rb'

# Offense count: 134
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle.
# SupportedStyles: always, always_true, never
Style/FrozenStringLiteralComment:
  Enabled: false

# Offense count: 3
# Configuration parameters: AllowedVariables.
Style/GlobalVars:
  Exclude:
    - 'benchmarks/find_original_method_early.rb'
    - 'spec/rspec/mocks/configuration_spec.rb'
    - 'spec/spec_helper.rb'

# Offense count: 2
# Cop supports --auto-correct.
Style/HashEachMethods:
  Exclude:
    - 'benchmarks/each_value_v_values_each.rb'
    - 'lib/rspec/mocks/space.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/HashTransformValues:
  Exclude:
    - 'lib/rspec/mocks/error_generator.rb'

# Offense count: 3
Style/MultilineBlockChain:
  Exclude:
    - 'spec/rspec/mocks/failure_notification_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/MultilineTernaryOperator:
  Exclude:
    - 'spec/rspec/mocks/null_object_double_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/MultilineWhenThen:
  Exclude:
    - 'lib/rspec/mocks/error_generator.rb'

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedOctalStyle.
# SupportedOctalStyles: zero_with_o, zero_only
Style/NumericLiteralPrefix:
  Exclude:
    - 'spec/rspec/mocks/error_generator_spec.rb'

# Offense count: 11
# Configuration parameters: AllowedMethods.
# AllowedMethods: respond_to_missing?
Style/OptionalBooleanParameter:
  Exclude:
    - 'lib/rspec/mocks/any_instance/proxy.rb'
    - 'lib/rspec/mocks/error_generator.rb'
    - 'lib/rspec/mocks/object_reference.rb'
    - 'lib/rspec/mocks/space.rb'
    - 'lib/rspec/mocks/test_double.rb'
    - 'lib/rspec/mocks/verifying_double.rb'
    - 'spec/rspec/mocks/partial_double_spec.rb'
    - 'spec/support/doubled_classes.rb'

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

# Offense count: 1
# Cop supports --auto-correct.
Style/RedundantInterpolation:
  Exclude:
    - 'spec/rspec/mocks/double_spec.rb'

# Offense count: 9
# Cop supports --auto-correct.
Style/RedundantPercentQ:
  Exclude:
    - 'features/step_definitions/additional_cli_steps.rb'
    - 'spec/rspec/mocks/double_spec.rb'
    - 'spec/rspec/mocks/partial_double_spec.rb'
    - 'spec/rspec/mocks/stubbed_message_expectations_spec.rb'
    - 'spec/rspec/mocks/verifying_doubles/naming_spec.rb'

# Offense count: 27
# Cop supports --auto-correct.
Style/RedundantRegexpEscape:
  Exclude:
    - 'spec/rspec/mocks/argument_matchers_spec.rb'
    - 'spec/rspec/mocks/diffing_spec.rb'
    - 'spec/rspec/mocks/partial_double_spec.rb'

# Offense count: 1
# Cop supports --auto-correct.
Style/RescueModifier:
  Exclude:
    - 'spec/rspec/mocks/partial_double_using_mocks_directly_spec.rb'

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

# Offense count: 17
# Cop supports --auto-correct.
# Configuration parameters: AllowAsExpressionSeparator.
Style/Semicolon:
  Exclude:
    - 'benchmarks/each_value_v_values_each.rb'
    - 'spec/rspec/mocks/double_spec.rb'
    - 'spec/rspec/mocks/failure_notification_spec.rb'
    - 'spec/rspec/mocks/instance_method_stasher_spec.rb'
    - 'spec/rspec/mocks/matchers/receive_messages_spec.rb'
    - 'spec/rspec/mocks/matchers/receive_spec.rb'
    - 'spec/rspec/mocks/reraising_eager_raises_spec.rb'
    - 'spec/rspec/mocks/stub_spec.rb'
    - 'spec/rspec/mocks/stubbed_message_expectations_spec.rb'

# Offense count: 46
# Cop supports --auto-correct.
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
  Exclude:
    - 'spec/rspec/mocks/and_call_original_spec.rb'
    - 'spec/rspec/mocks/and_yield_spec.rb'
    - 'spec/rspec/mocks/any_instance_spec.rb'
    - 'spec/rspec/mocks/instance_method_stasher_spec.rb'
    - 'spec/rspec/mocks/matchers/receive_spec.rb'
    - 'spec/rspec/mocks/should_syntax_spec.rb'
    - 'spec/rspec/mocks/stub_implementation_spec.rb'
    - 'spec/rspec/mocks/stub_spec.rb'

# Offense count: 7
# Cop supports --auto-correct.
# Configuration parameters: AllowModifier.
Style/SoleNestedConditional:
  Exclude:
    - 'lib/rspec/mocks/any_instance/message_chains.rb'
    - 'lib/rspec/mocks/any_instance/recorder.rb'
    - 'lib/rspec/mocks/argument_list_matcher.rb'
    - 'lib/rspec/mocks/proxy.rb'

# Offense count: 5
# Cop supports --auto-correct.
Style/StringConcatenation:
  Exclude:
    - 'lib/rspec/mocks/argument_matchers.rb'
    - 'lib/rspec/mocks/error_generator.rb'
    - 'lib/rspec/mocks/mutate_const.rb'
    - 'spec/rspec/mocks/block_return_value_spec.rb'
    - 'spec/rspec/mocks/mutate_const_spec.rb'
