• 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: 3.0
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
23Style/MultilineBlockChain:
24  Enabled: false
25Style/Alias:
26  Enabled: false
27Style/EvalWithLocation:
28  Enabled: false
29Style/MixinUsage:
30  Enabled: false
31Style/OptionalBooleanParameter:
32  Enabled: false
33
34# These are also places we diverge... but we will likely comply down the road
35Style/IfUnlessModifier:
36  Enabled: false
37Style/FormatStringToken:
38  Enabled: false
39
40# This is disabled because it seems to get confused over nested hashes
41Layout/HashAlignment:
42  Enabled: false
43  EnforcedHashRocketStyle: table
44  EnforcedColonStyle: table
45Layout/LineLength:
46  Enabled: false
47
48# We purposefully use these insecure features because they're what makes Ruby awesome
49Security/Eval:
50  Enabled: false
51Security/YAMLLoad:
52  Enabled: false
53
54# At this point, we're not ready to enforce inline documentation requirements
55Style/Documentation:
56  Enabled: false
57Style/DocumentationMethod:
58  Enabled: false
59
60# At this point, we're not ready to enforce any metrics
61Metrics/AbcSize:
62  Enabled: false
63Metrics/BlockLength:
64  Enabled: false
65Metrics/BlockNesting:
66  Enabled: false
67Metrics/ClassLength:
68  Enabled: false
69Metrics/CyclomaticComplexity:
70  Enabled: false
71Metrics/MethodLength:
72  Enabled: false
73Metrics/ModuleLength:
74  Enabled: false
75Metrics/ParameterLists:
76  Enabled: false
77Metrics/PerceivedComplexity:
78  Enabled: false
79