inherit_from:
  - .rubocop_rspec_base.yml
  - .rubocop_todo.yml

AllCops:
  Exclude:
    - benchmarks/**/*
    - tmp/**/*

Lint/AssignmentInCondition:
  Exclude:
    # The pattern makes sense here
    - 'lib/rspec/support/mutex.rb'

Lint/Void:
  Exclude:
    - spec/rspec/support/spec/stderr_splitter_spec.rb

# Over time we'd like to get this down, but this is what we're at now.
Metrics/AbcSize:
  Max: 28

# Over time we'd like to get this down, but this is what we're at now.
Metrics/BlockLength:
  Max: 86
  Exclude:
    - spec/**/*

Metrics/ModuleLength:
  Exclude:
    - spec/rspec/support/method_signature_verifier_spec.rb

# Over time we'd like to get this down, but this is what we're at now.
Metrics/PerceivedComplexity:
  Max: 10

Security/MarshalLoad:
  Exclude:
    - 'lib/rspec/support/spec/in_sub_process.rb'

Style/EvalWithLocation:
  Exclude:
    # eval is only used here to check syntax
    - 'lib/rspec/support/ruby_features.rb'
    - 'benchmarks/skip_frames_for_caller_filter.rb'
    - 'spec/rspec/support/method_signature_verifier_spec.rb'

Style/FrozenStringLiteralComment:
  Include:
    - lib/**/*.rb
