Add rubocop TargetVersion; disable new cops

This commit is contained in:
James Mason 2018-05-08 13:47:13 -07:00
parent 580252f512
commit 8e9d19f9e5
No known key found for this signature in database
GPG key ID: 1B3951886C449023
2 changed files with 14 additions and 3 deletions

View file

@ -12,10 +12,18 @@ AllCops:
- 'bundle/**/*'
- 'config/**/*'
- 'bin/*'
TargetRubyVersion: 2.4
#################### Metrics ###############################
# Start with cops for Ruby >= 2.3 disabled
Style/FrozenStringLiteralComment:
Enabled: false
Style/SafeNavigation:
Enabled: false
Style/NumericPredicate:
Enabled: false
# Avoid deep blocks nesting
Metrics/BlockNesting:
Max: 4