• 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.1
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/RegexpLiteral:
16  AllowInnerSlashes: true
17Style/HashSyntax:
18  EnforcedStyle: no_mixed_keys
19
20# This is disabled because it seems to get confused over nested hashes
21Style/AlignHash:
22  Enabled: false
23  EnforcedHashRocketStyle: table
24  EnforcedColonStyle: table
25
26# We purposefully use these insecure features because they're what makes Ruby awesome
27Security/Eval:
28  Enabled: false
29Security/YAMLLoad:
30  Enabled: false
31
32# At this point, we're not ready to enforce inline documentation requirements
33Style/Documentation:
34  Enabled: false
35Style/DocumentationMethod:
36  Enabled: false
37
38# At this point, we're not ready to enforce any metrics
39Metrics/AbcSize:
40  Enabled: false
41Metrics/BlockLength:
42  Enabled: false
43Metrics/BlockNesting:
44  Enabled: false
45Metrics/ClassLength:
46  Enabled: false
47Metrics/CyclomaticComplexity:
48  Enabled: false
49Metrics/LineLength:
50  Enabled: false
51Metrics/MethodLength:
52  Enabled: false
53Metrics/ModuleLength:
54  Enabled: false
55Metrics/ParameterLists:
56  Enabled: false
57Metrics/PerceivedComplexity:
58  Enabled: false
59