.rubocop.yml 1.6 KB

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