Set TargetRubyVersion in .rubocop.yml
This commit is contained in:
parent
c30de78f97
commit
922cac70d6
1 changed files with 1 additions and 8 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
AllCops:
|
AllCops:
|
||||||
|
TargetRubyVersion: 2.1
|
||||||
Exclude:
|
Exclude:
|
||||||
- "bin/**/*"
|
- "bin/**/*"
|
||||||
- "test/dummy/bin/**/*"
|
- "test/dummy/bin/**/*"
|
||||||
|
|
@ -192,17 +193,9 @@ Style/NumericPredicate:
|
||||||
### backward compatibility
|
### backward compatibility
|
||||||
|
|
||||||
# only with ruby >= 2.3
|
# only with ruby >= 2.3
|
||||||
Style/FrozenStringLiteralComment:
|
|
||||||
Enabled: false
|
|
||||||
Style/SafeNavigation:
|
|
||||||
Enabled: false
|
|
||||||
Layout/IndentHeredoc:
|
Layout/IndentHeredoc:
|
||||||
Enabled: false
|
Enabled: false
|
||||||
|
|
||||||
# only with ruby >= 2.4
|
|
||||||
Performance/RegexpMatch:
|
|
||||||
Enabled: false
|
|
||||||
|
|
||||||
# for rails 4 and ruby < 2.2.2
|
# for rails 4 and ruby < 2.2.2
|
||||||
Rails/HttpPositionalArguments:
|
Rails/HttpPositionalArguments:
|
||||||
Exclude:
|
Exclude:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue