WeAreFarmGeek/diplomat

View on GitHub
.rubocop.yml

Summary

Maintainability
Test Coverage
# Global options
AllCops:
  DisplayCopNames: true
  NewCops: disable

# While we support 2.4+, it still works with 2.0+
Gemspec/RequiredRubyVersion:
  Enabled: false

Metrics/AbcSize:
  Max: 60

Metrics/CyclomaticComplexity:
  Max: 15

Layout/LineLength:
  # This will disable the rule completely, regardless what other options you put
  Enabled: true
  # Change the default 80 chars limit value
  Max: 120

Metrics/MethodLength:
  # This cop checks if the length of a method exceeds some maximum value
  Enabled: true
  # Change the default 10 lines limit value
  Max: 50

# Allow classes longer than 100 lines of code
Metrics/ClassLength:
  Max: 250

Naming/MethodParameterName:
  Enabled: false

Lint/RedundantCopDisableDirective:
  Enabled: false

Metrics/PerceivedComplexity:
  Max: 11

Metrics/ParameterLists:
  Max: 6

Style/HashEachMethods:
  Enabled: true

Style/HashTransformKeys:
  Enabled: true

Style/HashTransformValues:
  Enabled: true

Style/RedundantReturn:
  Enabled: false

Style/SafeNavigation:
  Enabled: false