Update basic rubocop config

* Set a target ruby version of 2.4
* ignore database migrations (we don't want to mess with existing migrations)
This commit is contained in:
James Mason 2018-04-04 10:08:23 -07:00
parent ef900c3450
commit e1a70823fb
No known key found for this signature in database
GPG key ID: 1B3951886C449023

View file

@ -3,11 +3,13 @@ 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/**/*'
@ -25,10 +27,3 @@ 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'