osem-fcy/.rubocop.yml

34 lines
674 B
YAML
Raw Normal View History

# Inherit style from another configuration
2014-07-21 13:09:37 +02:00
inherit_from: .rubocop_todo.yml
# Apply rule to all cops
AllCops:
Include:
- '**/Rakefile'
- '**/config.ru'
Exclude:
- 'db/schema.rb'
- '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'
Metrics/BlockLength:
Exclude:
- 'spec/models/conference_spec.rb'
2017-06-19 17:35:46 +03:00
- 'spec/features/ability_spec.rb'
- 'spec/models/ability_spec.rb'