logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

.rubocop.yml (1643B)


  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. Bundler/OrderedGems:
  15. Enabled: false
  16. Layout/AccessModifierIndentation:
  17. EnforcedStyle: indent
  18. Layout/EmptyLineAfterMagicComment:
  19. Enabled: false
  20. Layout/SpaceInsideHashLiteralBraces:
  21. EnforcedStyle: space
  22. Metrics/AbcSize:
  23. Max: 100
  24. Metrics/BlockLength:
  25. Max: 35
  26. Exclude:
  27. - 'lib/tasks/**/*'
  28. Metrics/BlockNesting:
  29. Max: 3
  30. Metrics/ClassLength:
  31. CountComments: false
  32. Max: 300
  33. Metrics/CyclomaticComplexity:
  34. Max: 25
  35. Metrics/LineLength:
  36. AllowURI: true
  37. Enabled: false
  38. Metrics/MethodLength:
  39. CountComments: false
  40. Max: 55
  41. Metrics/ModuleLength:
  42. CountComments: false
  43. Max: 200
  44. Metrics/ParameterLists:
  45. Max: 5
  46. CountKeywordArgs: true
  47. Metrics/PerceivedComplexity:
  48. Max: 20
  49. Rails:
  50. Enabled: true
  51. Rails/HasAndBelongsToMany:
  52. Enabled: false
  53. Rails/SkipsModelValidations:
  54. Enabled: false
  55. Style/ClassAndModuleChildren:
  56. Enabled: false
  57. Style/CollectionMethods:
  58. Enabled: true
  59. PreferredMethods:
  60. find_all: 'select'
  61. Style/Documentation:
  62. Enabled: false
  63. Style/DoubleNegation:
  64. Enabled: true
  65. Style/FrozenStringLiteralComment:
  66. Enabled: true
  67. Style/GuardClause:
  68. Enabled: false
  69. Style/Lambda:
  70. Enabled: false
  71. Style/PercentLiteralDelimiters:
  72. PreferredDelimiters:
  73. '%i': '()'
  74. '%w': '()'
  75. Style/PerlBackrefs:
  76. AutoCorrect: false
  77. Style/RegexpLiteral:
  78. Enabled: false
  79. Style/SymbolArray:
  80. Enabled: false
  81. Style/TrailingCommaInLiteral:
  82. EnforcedStyleForMultiline: 'comma'