Skip to content

Commit f296d10

Browse files
committed
Bump RuboCop version to 0.81.0
* Error if RuboCop 0.82.0 or higher ``` % bundle exec rubocop Error: RuboCop found unsupported Ruby version 2.3 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.3-compatible analysis was dropped after version 0.81. Supported versions: 2.4, 2.5, 2.6, 2.7, 2.8 ``` Note: Will consider to drop older Ruby versions at ruby-plsql itself. * Rename `Layout/IndentFirstArgument` to `Layout/FirstArgumentIndentation` and `Layout/TrailingBlankLines` to `Layout/TrailingEmptyLines` using mry ``` % gem install mry mry --target=0.81.0 .rubocop.yml ``` * Remove `Style/BracesAroundHashParameters` cop manually ``` % bundle exec rubocop Error: RuboCop found unsupported Ruby version 2.3 in `TargetRubyVersion` parameter (in .rubocop.yml). 2.3-compatible analysis was dropped after version 0.81. Error: The `Style/BracesAroundHashParameters` cop has been removed. (obsolete configuration found in .rubocop.yml, please update it) ```
1 parent 0a7edeb commit f296d10

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

.rubocop.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ AllCops:
99
Style/AndOr:
1010
Enabled: true
1111

12-
# Do not use braces for hash literals when they are the last argument of a
13-
# method call.
14-
Style/BracesAroundHashParameters:
15-
Enabled: true
16-
EnforcedStyle: context_dependent
17-
1812
# Align `when` with `case`.
1913
Layout/CaseIndentation:
2014
Enabled: true
@@ -45,7 +39,7 @@ Layout/EmptyLinesAroundMethodBody:
4539
Layout/EmptyLinesAroundModuleBody:
4640
Enabled: true
4741

48-
Layout/IndentFirstArgument:
42+
Layout/FirstArgumentIndentation:
4943
Enabled: true
5044

5145
# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }.
@@ -122,7 +116,7 @@ Layout/Tab:
122116
Enabled: true
123117

124118
# Blank lines should not have any spaces.
125-
Layout/TrailingBlankLines:
119+
Layout/TrailingEmptyLines:
126120
Enabled: true
127121

128122
# No trailing whitespace.

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ source "http://rubygems.org"
33
group :development do
44
gem "juwelier", "~> 2.0"
55
gem "rspec_junit_formatter"
6-
gem "rubocop", require: false
6+
gem "rubocop", "0.81", require: false
77
gem "rubocop-performance", require: false
88
gem "rubocop-rails", require: false
99
end

0 commit comments

Comments
 (0)