.rubocop.yml 1.3 KB

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