闭社主体 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.

97 lines
1.4 KiB

  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. Style/GuardClause:
  55. Enabled: false
  56. Rails/HasAndBelongsToMany:
  57. Enabled: false
  58. Bundler/OrderedGems:
  59. Enabled: false
  60. AllCops:
  61. TargetRubyVersion: 2.3
  62. Exclude:
  63. - 'spec/**/*'
  64. - 'db/**/*'
  65. - 'app/views/**/*'
  66. - 'config/**/*'
  67. - 'bin/*'
  68. - 'Rakefile'
  69. - 'node_modules/**/*'
  70. - 'Vagrantfile'
  71. - 'vendor/**/*'