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 # Apply rule to all cops
AllCops: AllCops:
TargetRubyVersion: 2.4
Include: Include:
- '**/Rakefile' - '**/Rakefile'
- '**/config.ru' - '**/config.ru'
Exclude: Exclude:
- 'db/schema.rb' - 'db/schema.rb'
- 'db/migrations/*'
- 'vendor/bundle/**/*' - 'vendor/bundle/**/*'
- 'bundle/**/*' - 'bundle/**/*'
- 'config/**/*' - 'config/**/*'
@ -25,10 +27,3 @@ Metrics/ClassLength:
Max: 300 Max: 300
Exclude: Exclude:
- 'app/models/conference.rb' - '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'