闭社主体 forked from https://github.com/tootsuite/mastodon
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.

60 lines
905 B

  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/ModuleLength:
  16. Max: 100
  17. Metrics/ParameterLists:
  18. Max: 4
  19. CountKeywordArgs: true
  20. Style/AccessModifierIndentation:
  21. EnforcedStyle: indent
  22. Style/CollectionMethods:
  23. Enabled: true
  24. PreferredMethods:
  25. find_all: 'select'
  26. Style/Documentation:
  27. Enabled: false
  28. Style/DoubleNegation:
  29. Enabled: false
  30. Style/FrozenStringLiteralComment:
  31. Enabled: false
  32. Style/SpaceInsideHashLiteralBraces:
  33. EnforcedStyle: space
  34. Style/TrailingCommaInLiteral:
  35. EnforcedStyleForMultiline: 'comma'
  36. Style/RegexpLiteral:
  37. Enabled: false
  38. AllCops:
  39. TargetRubyVersion: 2.2
  40. Exclude:
  41. - 'spec/**/*'
  42. - 'db/**/*'
  43. - 'app/views/**/*'
  44. - 'config/**/*'