選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

.rubocop.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. inherit_from: .rubocop_todo.yml
  2. AllCops:
  3. TargetRubyVersion: 2.3
  4. TargetRailsVersion: 5.2
  5. Exclude:
  6. - '**/vendor/**/*'
  7. - '**/tmp/**/*'
  8. - '**/bin/**/*'
  9. - '**/plugins/**/*'
  10. - '**/extra/**/*'
  11. - '**/lib/generators/**/templates/*'
  12. - '**/lib/tasks/**/*'
  13. - '**/files/**/*'
  14. - 'db/schema.rb'
  15. # Enable extensions
  16. require:
  17. - rubocop-performance
  18. - rubocop-rails
  19. # Rules for Redmine
  20. Layout/EmptyLineBetweenDefs:
  21. AllowAdjacentOneLineDefs: true
  22. Layout/SpaceBeforeBlockBraces:
  23. Enabled: false
  24. Layout/SpaceInsideBlockBraces:
  25. Enabled: false
  26. Layout/SpaceInsideHashLiteralBraces:
  27. Enabled: false
  28. Layout/TrailingWhitespace:
  29. AllowInHeredoc: true
  30. Lint/HandleExceptions:
  31. AllowComments: true
  32. Metrics:
  33. Enabled: false
  34. Naming/AccessorMethodName:
  35. Enabled: false
  36. Naming/BinaryOperatorParameterName:
  37. Enabled: false
  38. Naming/PredicateName:
  39. Enabled: false
  40. Rails/BulkChangeTable:
  41. Exclude:
  42. - 'db/migrate/20120714122200_add_workflows_rule_fields.rb'
  43. - 'db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb'
  44. Rails/HelperInstanceVariable:
  45. Enabled: false
  46. # Configuration parameters: AllowedChars.
  47. Style/AsciiComments:
  48. Exclude:
  49. # Copyright credit has non ascii character.
  50. # We can not change nor remove it.
  51. - 'app/models/repository/git.rb'
  52. Style/FormatStringToken:
  53. Enabled: false
  54. Style/FrozenStringLiteralComment:
  55. Enabled: true
  56. EnforcedStyle: always
  57. Exclude:
  58. - 'db/**/*.rb'
  59. - 'Gemfile'
  60. - 'Rakefile'
  61. - 'config.ru'
  62. - 'config/additional_environment.rb'
  63. Style/HashSyntax:
  64. Enabled: true
  65. EnforcedStyle: no_mixed_keys
  66. Style/IdenticalConditionalBranches:
  67. Exclude:
  68. - 'config/initializers/10-patches.rb'
  69. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  70. Style/TrailingCommaInArrayLiteral:
  71. Enabled: false