.rubocop.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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/EnumHash:
  57. Enabled: false
  58. Rails/HasAndBelongsToMany:
  59. Enabled: false
  60. Rails/SkipsModelValidations:
  61. Enabled: false
  62. Rails/HttpStatus:
  63. Enabled: false
  64. Rails/Exit:
  65. Exclude:
  66. - 'lib/mastodon/*'
  67. - 'lib/cli.rb'
  68. Rails/HelperInstanceVariable:
  69. Enabled: false
  70. Style/ClassAndModuleChildren:
  71. Enabled: false
  72. Style/CollectionMethods:
  73. Enabled: true
  74. PreferredMethods:
  75. find_all: 'select'
  76. Style/Documentation:
  77. Enabled: false
  78. Style/DoubleNegation:
  79. Enabled: true
  80. Style/FormatStringToken:
  81. Enabled: false
  82. Style/FrozenStringLiteralComment:
  83. Enabled: true
  84. Style/GuardClause:
  85. Enabled: false
  86. Style/Lambda:
  87. Enabled: false
  88. Style/PercentLiteralDelimiters:
  89. PreferredDelimiters:
  90. '%i': '()'
  91. '%w': '()'
  92. Style/PerlBackrefs:
  93. AutoCorrect: false
  94. Style/RegexpLiteral:
  95. Enabled: false
  96. Style/SymbolArray:
  97. Enabled: false
  98. Style/TrailingCommaInArrayLiteral:
  99. EnforcedStyleForMultiline: 'comma'
  100. Style/TrailingCommaInHashLiteral:
  101. EnforcedStyleForMultiline: 'comma'