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:
parent
ef900c3450
commit
e1a70823fb
1 changed files with 2 additions and 7 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue