.rubocop.yml 1.6 KB
Newer Older
1 2
# This is the configuration used to check the rubocop source code.

3
#inherit_from: .rubocop_todo.yml
4 5

AllCops:
M
mvandervoord 已提交
6
  TargetRubyVersion: 2.3
7 8 9 10 11 12

# These are areas where ThrowTheSwitch's coding style diverges from the Ruby standard
Style/SpecialGlobalVars:
  EnforcedStyle: use_perl_names
Style/FormatString:
  Enabled: false
13 14
Style/GlobalVars:
  Enabled: false
M
mvandervoord 已提交
15 16
Style/FrozenStringLiteralComment:
  Enabled: false
17 18 19 20
Style/RegexpLiteral:
  AllowInnerSlashes: true
Style/HashSyntax:
  EnforcedStyle: no_mixed_keys
M
mvandervoord 已提交
21 22 23 24 25 26 27 28
Style/NumericPredicate:
  Enabled: false

# These are also places we diverge... but we will likely comply down the road
Style/IfUnlessModifier:
  Enabled: false
Style/FormatStringToken:
  Enabled: false
29 30

# This is disabled because it seems to get confused over nested hashes
J
John Lindgren 已提交
31
Layout/AlignHash:
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
  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
63 64
Metrics/ModuleLength:
  Enabled: false
65 66 67 68
Metrics/ParameterLists:
  Enabled: false
Metrics/PerceivedComplexity:
  Enabled: false