Skip to content

Commit 0d6820c

Browse files
committed
Update .rubocop.yml to run RuboCop 0.76 using Ruby 2.3
To address these errors: ```ruby $ bundle exec rubocop Error: The `Style/UnneededPercentQ` cop has been renamed to `Style/RedundantPercentQ`. (obsolete configuration found in .rubocop.yml, please update it) The `Layout/FirstParameterIndentation` cop has been renamed to `Layout/IndentFirstArgument`. (obsolete configuration found in .rubocop.yml, please update it) obsolete `EnforcedStyle: rails` (for Layout/IndentationConsistency) found in .rubocop.yml `EnforcedStyle: rails` has been renamed to `EnforcedStyle: indented_internal_methods` $ ``` ``` $ bundle exec rubocop Error: RuboCop found unsupported Ruby version 2.2 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.2-compatible analysis was dropped after version 0.69. Supported versions: 2.3, 2.4, 2.5, 2.6, 2.7 $ ```
1 parent 0a57cdd commit 0d6820c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.rubocop.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# We should not use cops only available for Ruby 2.1 or later
33
# since ruby-plsql itself supports Ruby 1.9.3
44
AllCops:
5-
TargetRubyVersion: 2.2
5+
TargetRubyVersion: 2.3
66
DisabledByDefault: true
77

88
# Prefer &&/|| over and/or.
@@ -45,7 +45,7 @@ Layout/EmptyLinesAroundMethodBody:
4545
Layout/EmptyLinesAroundModuleBody:
4646
Enabled: true
4747

48-
Layout/FirstParameterIndentation:
48+
Layout/IndentFirstArgument:
4949
Enabled: true
5050

5151
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
@@ -56,7 +56,7 @@ Style/HashSyntax:
5656
# extra level of indentation.
5757
Layout/IndentationConsistency:
5858
Enabled: true
59-
EnforcedStyle: rails
59+
EnforcedStyle: indented_internal_methods
6060

6161
# Two spaces, no tabs (for indentation).
6262
Layout/IndentationWidth:
@@ -130,7 +130,7 @@ Layout/TrailingWhitespace:
130130
Enabled: true
131131

132132
# Use quotes for string literals when they are enough.
133-
Style/UnneededPercentQ:
133+
Style/RedundantPercentQ:
134134
Enabled: true
135135

136136
# Align `end` with the matching keyword or starting expression except for

0 commit comments

Comments
 (0)