• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# This is the configuration used to check the rubocop source code.
2
3#inherit_from: .rubocop_todo.yml
4
5AllCops:
6  TargetRubyVersion: 2.3
7
8# These are areas where ThrowTheSwitch's coding style diverges from the Ruby standard
9Style/SpecialGlobalVars:
10  EnforcedStyle: use_perl_names
11Style/FormatString:
12  Enabled: false
13Style/GlobalVars:
14  Enabled: false
15Style/FrozenStringLiteralComment:
16  Enabled: false
17Style/RegexpLiteral:
18  AllowInnerSlashes: true
19Style/HashSyntax:
20  EnforcedStyle: no_mixed_keys
21Style/NumericPredicate:
22  Enabled: false
23
24# These are also places we diverge... but we will likely comply down the road
25Style/IfUnlessModifier:
26  Enabled: false
27Style/FormatStringToken:
28  Enabled: false
29
30# This is disabled because it seems to get confused over nested hashes
31Layout/AlignHash:
32  Enabled: false
33  EnforcedHashRocketStyle: table
34  EnforcedColonStyle: table
35
36# We purposefully use these insecure features because they're what makes Ruby awesome
37Security/Eval:
38  Enabled: false
39Security/YAMLLoad:
40  Enabled: false
41
42# At this point, we're not ready to enforce inline documentation requirements
43Style/Documentation:
44  Enabled: false
45Style/DocumentationMethod:
46  Enabled: false
47
48# At this point, we're not ready to enforce any metrics
49Metrics/AbcSize:
50  Enabled: false
51Metrics/BlockLength:
52  Enabled: false
53Metrics/BlockNesting:
54  Enabled: false
55Metrics/ClassLength:
56  Enabled: false
57Metrics/CyclomaticComplexity:
58  Enabled: false
59Metrics/LineLength:
60  Enabled: false
61Metrics/MethodLength:
62  Enabled: false
63Metrics/ModuleLength:
64  Enabled: false
65Metrics/ParameterLists:
66  Enabled: false
67Metrics/PerceivedComplexity:
68  Enabled: false
69