osem-fcy/.rubocop.yml
2018-06-01 09:15:57 -07:00

42 lines
915 B
YAML

# Inherit style from another configuration
inherit_from: .rubocop_todo.yml
# Apply rule to all cops
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'db/schema.rb'
- 'vendor/bundle/**/*'
- 'bundle/**/*'
- 'config/**/*'
- 'bin/*'
TargetRubyVersion: 2.4
#################### Metrics ###############################
# Start with cops for Ruby >= 2.3 disabled
Style/FrozenStringLiteralComment:
Enabled: false
Style/SafeNavigation:
Enabled: false
Style/NumericPredicate:
Enabled: false
# Avoid deep blocks nesting
Metrics/BlockNesting:
Max: 4
# Avoid writing classes that are more than 300 lines
Metrics/ClassLength:
Max: 300
Exclude:
- 'app/models/conference.rb'
Metrics/BlockLength:
Exclude:
- 'spec/models/conference_spec.rb'
- 'spec/features/ability_spec.rb'
- 'spec/models/ability_spec.rb'
- 'spec/models/admin_ability_spec.rb'