2016-07-26 08:14:23 +08:00
|
|
|
AllCops:
|
|
|
|
TargetRubyVersion: 2.3
|
|
|
|
Exclude:
|
|
|
|
- 'db/**/*'
|
|
|
|
- 'tmp/**/*'
|
|
|
|
- 'bin/**/*'
|
|
|
|
- 'vendor/**/*'
|
|
|
|
- 'app/assets/javascripts/node_modules/**/*'
|
2016-09-24 12:27:34 +08:00
|
|
|
- 'Vagrantfile'
|
2016-07-26 08:14:23 +08:00
|
|
|
|
|
|
|
Rails:
|
|
|
|
Enabled: true
|
|
|
|
|
|
|
|
Metrics/LineLength:
|
2018-01-20 14:10:26 -08:00
|
|
|
Max: 120
|
2016-09-24 11:00:53 +08:00
|
|
|
|
|
|
|
Metrics/AbcSize:
|
|
|
|
Max: 16
|
|
|
|
|
|
|
|
Style/Documentation:
|
|
|
|
Enabled: false
|
2017-01-23 19:30:13 -05:00
|
|
|
|
|
|
|
Style/EmptyMethod:
|
|
|
|
EnforcedStyle: expanded
|
2018-01-21 14:21:00 -08:00
|
|
|
|
|
|
|
# I like this cop, but occasionally code is more readable without a guard clause,
|
|
|
|
# and I don't want to write rubocop:disable comments every time that happens
|
|
|
|
Style/GuardClause:
|
|
|
|
Enabled: false
|