inherit_from: .rubocop_todo.yml

require:
 - rubocop-performance
 - rubocop-rspec
 - rubocop/cop/internal_affairs

AllCops:
  DisplayCopNames: true
  TargetRubyVersion: 2.4
  NewCops: enable
  Exclude:
    - 'vendor/**/*'
    - 'spec/fixtures/**/*'
    - 'tmp/**/*'
    - 'spec/smoke_tests/**/*.rb'

# See https://github.com/rubocop-hq/rubocop/issues/6410
Layout/HashAlignment:
  Enabled: false

Layout/LineLength:
  Max: 80 # default: 120

Layout/MultilineMethodCallIndentation:
  EnforcedStyle: indented

Layout/MultilineOperationIndentation:
  EnforcedStyle: indented

Lint/BooleanSymbol:
  Exclude:
    - lib/rubocop/cop/rspec/expect_actual.rb
    - lib/rubocop/cop/rspec/focus.rb

Lint/InterpolationCheck:
  Exclude:
    - spec/**/*.rb

Metrics/BlockLength:
  Exclude:
    - rubocop-rspec.gemspec
    - Rakefile
    - '**/*.rake'
    - spec/**/*.rb

Naming/FileName:
  Exclude:
    - lib/rubocop-rspec.rb

RSpec/ExampleLength:
  Max: 30

RSpec/DescribeClass:
  Exclude:
    - spec/project/**/*.rb

inherit_from: .rubocop_todo.yml

require:
 - rubocop-performance
 - rubocop-rspec
 - rubocop/cop/internal_affairs

AllCops:
  DisplayCopNames: true
  TargetRubyVersion: 2.4
  NewCops: enable
  Exclude:
    - 'vendor/**/*'
    - 'spec/fixtures/**/*'
    - 'tmp/**/*'
    - 'spec/smoke_tests/**/*.rb'

# See https://github.com/rubocop-hq/rubocop/issues/6410
Layout/HashAlignment:
  Enabled: false

Layout/LineLength:
  Max: 80 # default: 120

Layout/MultilineMethodCallIndentation:
  EnforcedStyle: indented

Layout/MultilineOperationIndentation:
  EnforcedStyle: indented

Lint/BooleanSymbol:
  Exclude:
    - lib/rubocop/cop/rspec/expect_actual.rb
    - lib/rubocop/cop/rspec/focus.rb

Lint/InterpolationCheck:
  Exclude:
    - spec/**/*.rb

Metrics/BlockLength:
  Exclude:
    - rubocop-rspec.gemspec
    - Rakefile
    - '**/*.rake'
    - spec/**/*.rb

Naming/FileName:
  Exclude:
    - lib/rubocop-rspec.rb

RSpec/ExampleLength:
  Max: 30

RSpec/DescribeClass:
  Exclude:
    - spec/project/**/*.rb

Style/FormatStringToken:
  Exclude:
    - spec/rubocop/**/*.rb

Allow %{name} replacements in specs
Allow %{name} replacements in specs

Allow using `%{...}` syntax to substitute values for `expect_offense`.
