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.

121 lines
1.8 KiB

  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. Style/ClassAndModuleChildren:
  61. Enabled: false
  62. Style/CollectionMethods:
  63. Enabled: true
  64. PreferredMethods:
  65. find_all: 'select'
  66. Style/Documentation:
  67. Enabled: false
  68. Style/DoubleNegation:
  69. Enabled: true
  70. Style/FrozenStringLiteralComment:
  71. Enabled: true
  72. Style/GuardClause:
  73. Enabled: false
  74. Style/Lambda:
  75. Enabled: false
  76. Style/PercentLiteralDelimiters:
  77. PreferredDelimiters:
  78. '%i': '()'
  79. '%w': '()'
  80. Style/PerlBackrefs:
  81. AutoCorrect: false
  82. Style/RegexpLiteral:
  83. Enabled: false
  84. Style/SymbolArray:
  85. Enabled: false
  86. Style/TrailingCommaInArrayLiteral:
  87. EnforcedStyleForMultiline: 'comma'
  88. Style/TrailingCommaInHashLiteral:
  89. EnforcedStyleForMultiline: 'comma'