---
plugins:
  - rubocop-performance
  - rubocop-rake
  - rubocop-minitest

# https://rubocop.readthedocs.io/en/latest/
AllCops:
  TargetRubyVersion: 2.7
  DisplayCopNames: true
  NewCops: disable

Metrics/AbcSize:
  Exclude:
    - 'test/**/*'

Metrics/CyclomaticComplexity:
  Exclude:
    - 'test/**/*'

Metrics/PerceivedComplexity:
  Exclude:
    - 'test/**/*'

Metrics/ClassLength:
  Max: 500

Metrics/ModuleLength:
  Max: 500
  Exclude:
    - 'test/**/*'

Metrics/MethodLength:
  Max: 50
  Exclude:
    - 'test/**/*'

Metrics/BlockLength:
  Max: 40
  Exclude:
    - 'test/**/*'

Metrics/ParameterLists:
  Max: 10

Layout/LineLength:
  Max: 200

Layout/MultilineMethodCallIndentation:
  Enabled: false

Style/NumericPredicate:
  Enabled: false

Style/FormatStringToken:
  Enabled: false

Style/Documentation:
  Enabled: false

Gemspec/RequiredRubyVersion:
  Enabled: false

Naming/FileName:
  Exclude:
    - 'lib/redis-cluster-client.rb'
