mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 11:44:02 +00:00
Add rubocop TargetVersion; disable new cops
This commit is contained in:
parent
846ba53d1b
commit
a68be76a15
2 changed files with 14 additions and 3 deletions
10
.rubocop.yml
10
.rubocop.yml
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue