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