osem-fcy/.rubocop.yml
James Mason e1a70823fb
Update basic rubocop config
* Set a target ruby version of 2.4
* ignore database migrations (we don't want to mess with existing migrations)
2018-04-04 10:08:23 -07:00

29 lines
577 B
YAML

# Inherit style from another configuration
inherit_from: .rubocop_todo.yml
# Apply rule to all cops
AllCops:
TargetRubyVersion: 2.4
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'db/schema.rb'
- 'db/migrations/*'
- 'vendor/bundle/**/*'
- 'bundle/**/*'
- 'config/**/*'
- 'bin/*'
#################### Metrics ###############################
# 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'