2017-03-24 20:13:02 +01:00
|
|
|
# Inherit style from another configuration
|
2014-07-21 13:09:37 +02:00
|
|
|
inherit_from: .rubocop_todo.yml
|
|
|
|
|
|
2017-03-24 20:13:02 +01:00
|
|
|
# Apply rule to all cops
|
|
|
|
|
AllCops:
|
|
|
|
|
Include:
|
|
|
|
|
- '**/Rakefile'
|
|
|
|
|
- '**/config.ru'
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'db/schema.rb'
|
|
|
|
|
- 'vendor/bundle/**/*'
|
|
|
|
|
- 'bundle/**/*'
|
|
|
|
|
- 'config/**/*'
|
|
|
|
|
- 'bin/*'
|
2018-05-08 13:47:13 -07:00
|
|
|
TargetRubyVersion: 2.4
|
2017-03-28 14:42:21 +05:30
|
|
|
|
2017-03-24 20:13:02 +01:00
|
|
|
#################### Metrics ###############################
|
|
|
|
|
|
2018-05-08 13:47:13 -07:00
|
|
|
# Start with cops for Ruby >= 2.3 disabled
|
|
|
|
|
Style/NumericPredicate:
|
|
|
|
|
Enabled: false
|
|
|
|
|
|
2018-05-08 14:00:43 -07:00
|
|
|
Rails:
|
|
|
|
|
Enabled: true
|
|
|
|
|
|
2017-03-24 20:13:02 +01:00
|
|
|
# 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'
|
|
|
|
|
|
2017-04-25 16:36:43 +05:30
|
|
|
Metrics/BlockLength:
|
|
|
|
|
Exclude:
|
|
|
|
|
- 'spec/models/conference_spec.rb'
|
2017-06-19 17:35:46 +03:00
|
|
|
- 'spec/features/ability_spec.rb'
|
2017-06-08 12:25:33 +03:00
|
|
|
- 'spec/models/ability_spec.rb'
|
2017-08-09 18:12:20 +03:00
|
|
|
- 'spec/models/admin_ability_spec.rb'
|