Files
Redmine/.rubocop.yml
Go MAEDA cd7a5c2f2f Update RuboCop to 0.75.0 (#31509).
git-svn-id: http://svn.redmine.org/redmine/trunk@18576 e93f8b46-1217-0410-a6f0-8f06a7374b81
2019-10-01 03:18:39 +00:00

76 lines
1.3 KiB
YAML

inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.3
TargetRailsVersion: 5.2
Exclude:
- '**/vendor/**/*'
- '**/tmp/**/*'
- '**/bin/**/*'
- '**/plugins/**/*'
- '**/extra/**/*'
- '**/lib/generators/**/templates/*'
- '**/lib/tasks/**/*'
- '**/files/**/*'
# Enable extensions
require:
- rubocop-performance
- rubocop-rails
# Rules for Redmine
Layout/SpaceBeforeBlockBraces:
Enabled: false
Layout/SpaceInsideBlockBraces:
Enabled: false
Layout/TrailingWhitespace:
AllowInHeredoc: true
Lint/HandleExceptions:
AllowComments: true
Lint/IneffectiveAccessModifier:
Enabled: false
Metrics:
Enabled: false
Naming/AccessorMethodName:
Enabled: false
Naming/BinaryOperatorParameterName:
Enabled: false
Naming/PredicateName:
Enabled: false
Rails/BulkChangeTable:
Exclude:
- 'db/migrate/20120714122200_add_workflows_rule_fields.rb'
- 'db/migrate/20131214094309_remove_custom_fields_min_max_length_default_values.rb'
Rails/HelperInstanceVariable:
Enabled: false
Style/FormatStringToken:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: always
Exclude:
- 'db/**/*.rb'
- 'Gemfile'
- 'Rakefile'
- 'config.ru'
- 'config/additional_environment.rb'
Style/HashSyntax:
Enabled: true
EnforcedStyle: no_mixed_keys