1
0

.rubocop.yml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  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'