Skip to content

Commit aee1fcb

Browse files
committed
Upgrade RuboCop to >= 1.30.1
RuboCop v1.30.1 fixed a false positive for Style/SafeNavigation
1 parent ad9d23b commit aee1fcb

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

.rubocop_todo.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,6 @@ Style/MultipleComparison:
126126
Style/NumericLiterals:
127127
MinDigits: 20
128128

129-
# Offense count: 4
130-
# This cop supports safe autocorrection (--autocorrect).
131-
# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
132-
# AllowedMethods: present?, blank?, presence, try, try!
133-
Style/SafeNavigation:
134-
Exclude:
135-
- 'benchmark/setup_db.rb'
136-
- 'ext/mysql2/extconf.rb'
137-
- 'lib/mysql2/em.rb'
138-
139129
# Offense count: 14
140130
# This cop supports unsafe autocorrection (--autocorrect-all).
141131
# Configuration parameters: Mode.

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ group :test do
1717
gem 'rspec', '~> 3.2'
1818

1919
# https://github.com/bbatsov/rubocop/pull/4789
20-
gem 'rubocop', '~> 1.30' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.6')
20+
gem 'rubocop', '~> 1.30', '>= 1.30.1' if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.6')
2121
end
2222

2323
group :benchmarks, optional: true do

0 commit comments

Comments
 (0)