You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

91 lines
1.3 KiB

  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/SpaceInsideHashLiteralBraces:
  18. EnforcedStyle: space
  19. Metrics/AbcSize:
  20. Max: 100
  21. Metrics/BlockNesting:
  22. Max: 3
  23. Metrics/ClassLength:
  24. CountComments: false
  25. Max: 200
  26. Metrics/CyclomaticComplexity:
  27. Max: 15
  28. Metrics/LineLength:
  29. AllowURI: true
  30. Enabled: false
  31. Metrics/MethodLength:
  32. CountComments: false
  33. Max: 55
  34. Metrics/ModuleLength:
  35. CountComments: false
  36. Max: 200
  37. Metrics/ParameterLists:
  38. Max: 4
  39. CountKeywordArgs: true
  40. Metrics/PerceivedComplexity:
  41. Max: 10
  42. Rails:
  43. Enabled: true
  44. Rails/HasAndBelongsToMany:
  45. Enabled: false
  46. Style/ClassAndModuleChildren:
  47. Enabled: false
  48. Style/CollectionMethods:
  49. Enabled: true
  50. PreferredMethods:
  51. find_all: 'select'
  52. Style/Documentation:
  53. Enabled: false
  54. Style/DoubleNegation:
  55. Enabled: true
  56. Style/FrozenStringLiteralComment:
  57. Enabled: true
  58. Style/GuardClause:
  59. Enabled: false
  60. Style/Lambda:
  61. Enabled: false
  62. Style/PerlBackrefs:
  63. AutoCorrect: false
  64. Style/RegexpLiteral:
  65. Enabled: false
  66. Style/TrailingCommaInLiteral:
  67. EnforcedStyleForMultiline: 'comma'