.rubocop.yml 1.3 KB
Newer Older
1 2 3 4 5 6
# This is the configuration used to check the rubocop source code.

inherit_from: .rubocop_todo.yml

AllCops:
  TargetRubyVersion: 2.1
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54

# These are areas where ThrowTheSwitch's coding style diverges from the Ruby standard
# (Maybe we will make these conform over time)
Style/SpecialGlobalVars:
  SupportedStyles:
    - use_perl_names
    - use_english_names
  EnforcedStyle: use_perl_names
Style/FormatString:
  Enabled: false

# This is disabled because it seems to get confused over nested hashes
Style/AlignHash:
  Enabled: false
  EnforcedHashRocketStyle: table
  EnforcedColonStyle: table

# We purposefully use these insecure features because they're what makes Ruby awesome
Security/Eval:
  Enabled: false
Security/YAMLLoad:
  Enabled: false

# At this point, we're not ready to enforce inline documentation requirements
Style/Documentation:
  Enabled: false
Style/DocumentationMethod:
  Enabled: false

# At this point, we're not ready to enforce any metrics
Metrics/AbcSize:
  Enabled: false
Metrics/BlockLength:
  Enabled: false
Metrics/BlockNesting:
  Enabled: false
Metrics/ClassLength:
  Enabled: false
Metrics/CyclomaticComplexity:
  Enabled: false
Metrics/LineLength:
  Enabled: false
Metrics/MethodLength:
  Enabled: false
Metrics/ParameterLists:
  Enabled: false
Metrics/PerceivedComplexity:
  Enabled: false