.rubocop.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # This is the configuration used to check the rubocop source code.
  2. #inherit_from: .rubocop_todo.yml
  3. AllCops:
  4. TargetRubyVersion: 2.1
  5. # These are areas where ThrowTheSwitch's coding style diverges from the Ruby standard
  6. Style/SpecialGlobalVars:
  7. EnforcedStyle: use_perl_names
  8. Style/FormatString:
  9. Enabled: false
  10. Style/GlobalVars:
  11. Enabled: false
  12. Style/RegexpLiteral:
  13. AllowInnerSlashes: true
  14. Style/HashSyntax:
  15. EnforcedStyle: no_mixed_keys
  16. # This is disabled because it seems to get confused over nested hashes
  17. Style/AlignHash:
  18. Enabled: false
  19. EnforcedHashRocketStyle: table
  20. EnforcedColonStyle: table
  21. # We purposefully use these insecure features because they're what makes Ruby awesome
  22. Security/Eval:
  23. Enabled: false
  24. Security/YAMLLoad:
  25. Enabled: false
  26. # At this point, we're not ready to enforce inline documentation requirements
  27. Style/Documentation:
  28. Enabled: false
  29. Style/DocumentationMethod:
  30. Enabled: false
  31. # At this point, we're not ready to enforce any metrics
  32. Metrics/AbcSize:
  33. Enabled: false
  34. Metrics/BlockLength:
  35. Enabled: false
  36. Metrics/BlockNesting:
  37. Enabled: false
  38. Metrics/ClassLength:
  39. Enabled: false
  40. Metrics/CyclomaticComplexity:
  41. Enabled: false
  42. Metrics/LineLength:
  43. Enabled: false
  44. Metrics/MethodLength:
  45. Enabled: false
  46. Metrics/ModuleLength:
  47. Enabled: false
  48. Metrics/ParameterLists:
  49. Enabled: false
  50. Metrics/PerceivedComplexity:
  51. Enabled: false