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.

109 lines
1.6 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/EmptyLineAfterMagicComment:
  18. Enabled: false
  19. Layout/SpaceInsideHashLiteralBraces:
  20. EnforcedStyle: space
  21. Metrics/AbcSize:
  22. Max: 100
  23. Metrics/BlockLength:
  24. Exclude:
  25. - 'lib/tasks/**/*'
  26. Metrics/BlockNesting:
  27. Max: 3
  28. Metrics/ClassLength:
  29. CountComments: false
  30. Max: 200
  31. Metrics/CyclomaticComplexity:
  32. Max: 15
  33. Metrics/LineLength:
  34. AllowURI: true
  35. Enabled: false
  36. Metrics/MethodLength:
  37. CountComments: false
  38. Max: 55
  39. Metrics/ModuleLength:
  40. CountComments: false
  41. Max: 200
  42. Metrics/ParameterLists:
  43. Max: 4
  44. CountKeywordArgs: true
  45. Metrics/PerceivedComplexity:
  46. Max: 10
  47. Rails:
  48. Enabled: true
  49. Rails/HasAndBelongsToMany:
  50. Enabled: false
  51. Rails/SkipsModelValidations:
  52. Enabled: false
  53. Style/ClassAndModuleChildren:
  54. Enabled: false
  55. Style/CollectionMethods:
  56. Enabled: true
  57. PreferredMethods:
  58. find_all: 'select'
  59. Style/Documentation:
  60. Enabled: false
  61. Style/DoubleNegation:
  62. Enabled: true
  63. Style/FrozenStringLiteralComment:
  64. Enabled: true
  65. Style/GuardClause:
  66. Enabled: false
  67. Style/Lambda:
  68. Enabled: false
  69. Style/PercentLiteralDelimiters:
  70. PreferredDelimiters:
  71. '%i': '()'
  72. '%w': '()'
  73. Style/PerlBackrefs:
  74. AutoCorrect: false
  75. Style/RegexpLiteral:
  76. Enabled: false
  77. Style/SymbolArray:
  78. Enabled: false
  79. Style/TrailingCommaInLiteral:
  80. EnforcedStyleForMultiline: 'comma'