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.

132 lines
1.9 KiB

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