asaaki/ryodo

View on GitHub
.rubocop.yml

Summary

Maintainability
Test Coverage
require:
  - rubocop-rspec

AllCops:
  DisplayCopNames: true
  TargetRubyVersion: 3.3

Style/Documentation:
  Enabled: false

Metrics/ModuleLength:
  Enabled: false

# Current state is that we prefer the opposite (reduce/inject)
Style/EachWithObject:
  Enabled: false

Style/StringLiterals:
  EnforcedStyle: single_quotes
  SupportedStyles:
    - single_quotes
    - double_quotes

Style/MethodName:
  Exclude:
    - lib/ryodo/ext/kernel.rb

# 80 is not contemporary anymore
Metrics/LineLength:
  Max: 120

# RSpec cops
RSpec/NestedGroups:
  Max: 3

Layout/EmptyLinesAroundAttributeAccessor:
  Enabled: true

Layout/SpaceAroundMethodCallOperator:
  Enabled: true

Lint/DeprecatedOpenSSLConstant:
  Enabled: true

Lint/MixedRegexpCaptureTypes:
  Enabled: true

Lint/RaiseException:
  Enabled: true

Lint/StructNewOverride:
  Enabled: true

Style/ExponentialNotation:
  Enabled: true

Style/HashEachMethods:
  Enabled: true

Style/HashTransformKeys:
  Enabled: true

Style/HashTransformValues:
  Enabled: true

Style/RedundantRegexpCharacterClass:
  Enabled: true

Style/RedundantRegexpEscape:
  Enabled: true

Style/SlicingWithRange:
  Enabled: true