Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

.rubocop.yml 1.8KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  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. Lint/IneffectiveAccessModifier:
  33. Enabled: false
  34. Metrics:
  35. Enabled: false
  36. Naming/AccessorMethodName:
  37. Enabled: false
  38. Naming/BinaryOperatorParameterName:
  39. Enabled: false
  40. Naming/PredicateName:
  41. Enabled: false
  42. Rails/BulkChangeTable:
  43. Exclude:
  44. - 'db/migrate/20120714122200_add_workflows_rule_fields.rb'
  45. - 'db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb'
  46. Rails/HelperInstanceVariable:
  47. Enabled: false
  48. # Configuration parameters: AllowedChars.
  49. Style/AsciiComments:
  50. Exclude:
  51. # Copyright credit has non ascii character.
  52. # We can not change nor remove it.
  53. - 'app/models/repository/git.rb'
  54. Style/FormatStringToken:
  55. Enabled: false
  56. Style/FrozenStringLiteralComment:
  57. Enabled: true
  58. EnforcedStyle: always
  59. Exclude:
  60. - 'db/**/*.rb'
  61. - 'Gemfile'
  62. - 'Rakefile'
  63. - 'config.ru'
  64. - 'config/additional_environment.rb'
  65. Style/HashSyntax:
  66. Enabled: true
  67. EnforcedStyle: no_mixed_keys
  68. Style/IdenticalConditionalBranches:
  69. Exclude:
  70. - 'config/initializers/10-patches.rb'
  71. - 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
  72. Style/TrailingCommaInArrayLiteral:
  73. Enabled: false