Set TargetRubyVersion in .rubocop.yml

This commit is contained in:
Benjamin Neff 2017-08-24 03:10:01 +02:00
parent c30de78f97
commit 922cac70d6
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -1,4 +1,5 @@
AllCops:
TargetRubyVersion: 2.1
Exclude:
- "bin/**/*"
- "test/dummy/bin/**/*"
@ -192,17 +193,9 @@ Style/NumericPredicate:
### backward compatibility
# only with ruby >= 2.3
Style/FrozenStringLiteralComment:
Enabled: false
Style/SafeNavigation:
Enabled: false
Layout/IndentHeredoc:
Enabled: false
# only with ruby >= 2.4
Performance/RegexpMatch:
Enabled: false
# for rails 4 and ruby < 2.2.2
Rails/HttpPositionalArguments:
Exclude: