.rubocop.yml 1.9 KB

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