.rubocop.yml

Summary

Maintainability
Test Coverage
inherit_from: .rubocop_todo.yml

# Prevents Ruby 3.1 incompatibility error. You can enable this cop when Ruby 2.4 support is dropped.
# See https://github.com/rubocop/rubocop/issues/10258
Layout/BlockAlignment:
  Enabled: false

Style/NumericPredicate:
  Enabled: false

Layout/IndentHeredoc:
  Enabled: false

Naming/MethodName:
  Exclude:
    - 'spec/code_object_spec.rb'
    - 'lib/pry/method.rb'
    - 'lib/pry/wrapped_module.rb'
    - 'lib/pry/code.rb'

Metrics/ModuleLength:
  Exclude:
    - 'lib/pry/config/behavior.rb'

Layout/CommentIndentation:
  Exclude:
    - 'spec/fixtures/example_nesting.rb'

Layout/MultilineMethodCallIndentation:
  EnforcedStyle: indented

Style/ClassAndModuleChildren:
  Exclude:
    - 'spec/fixtures/example_nesting.rb'

Style/Semicolon:
  Exclude:
    - 'spec/method_spec.rb'

Style/SingleLineMethods:
  Exclude:
    - 'spec/method_spec.rb'
    - 'spec/fixtures/example_nesting.rb'

Style/StringLiterals:
  Enabled: false

Metrics/LineLength:
  Max: 90

Bundler/OrderedGems:
  Enabled: false

Style/DoubleNegation:
  Enabled: false

Style/Documentation:
  Enabled: false

Style/CommentedKeyword:
  Exclude:
    - 'spec/fixtures/example_nesting.rb'

Gemspec/RequiredRubyVersion:
  Enabled: false

Style/ModuleFunction:
  Enabled: false

Style/FrozenStringLiteralComment:
  Enabled: true
  EnforcedStyle: always
  Exclude:
    - 'spec/fixtures/example_nesting.rb'