.rubocop.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. AllCops:
  2. TargetRubyVersion: 2.3
  3. Exclude:
  4. - 'spec/**/*'
  5. - 'bin/*'
  6. - 'Rakefile'
  7. - 'vendor/**/*'
  8. Bundler/OrderedGems:
  9. Enabled: false
  10. Layout/AccessModifierIndentation:
  11. EnforcedStyle: indent
  12. Layout/EmptyLineAfterMagicComment:
  13. Enabled: false
  14. Layout/SpaceInsideHashLiteralBraces:
  15. EnforcedStyle: space
  16. Metrics/AbcSize:
  17. Max: 100
  18. Metrics/BlockNesting:
  19. Max: 3
  20. Metrics/ClassLength:
  21. CountComments: false
  22. Max: 200
  23. Metrics/CyclomaticComplexity:
  24. Max: 15
  25. Metrics/LineLength:
  26. AllowURI: true
  27. Enabled: false
  28. Metrics/MethodLength:
  29. CountComments: false
  30. Max: 55
  31. Metrics/ModuleLength:
  32. CountComments: false
  33. Max: 200
  34. Metrics/ParameterLists:
  35. Max: 4
  36. CountKeywordArgs: true
  37. Metrics/PerceivedComplexity:
  38. Max: 10
  39. Rails:
  40. Enabled: true
  41. Rails/HasAndBelongsToMany:
  42. Enabled: false
  43. Rails/SkipsModelValidations:
  44. Enabled: false
  45. Style/ClassAndModuleChildren:
  46. Enabled: false
  47. Style/CollectionMethods:
  48. Enabled: true
  49. PreferredMethods:
  50. find_all: 'select'
  51. Style/Documentation:
  52. Enabled: false
  53. Style/DoubleNegation:
  54. Enabled: true
  55. Style/FrozenStringLiteralComment:
  56. Enabled: true
  57. Style/GuardClause:
  58. Enabled: false
  59. Style/Lambda:
  60. Enabled: false
  61. Style/PercentLiteralDelimiters:
  62. PreferredDelimiters:
  63. '%i': '()'
  64. '%w': '()'
  65. Style/PerlBackrefs:
  66. AutoCorrect: false
  67. Style/RegexpLiteral:
  68. Enabled: false
  69. Style/SymbolArray:
  70. Enabled: false
  71. Style/TrailingCommaInLiteral:
  72. EnforcedStyleForMultiline: 'comma'