From 802d5e212fd4252f3817672298448d46ab139b5a Mon Sep 17 00:00:00 2001 From: aki Date: Thu, 12 Jan 2023 12:40:34 +0900 Subject: [PATCH] feat: rubocop@1.43.0 --- lib/sgcop/version.rb | 2 +- ruby/rubocop.yml | 9 +++++++++ sgcop.gemspec | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/lib/sgcop/version.rb b/lib/sgcop/version.rb index ae508ca..c9c13ee 100644 --- a/lib/sgcop/version.rb +++ b/lib/sgcop/version.rb @@ -1,3 +1,3 @@ module Sgcop - VERSION = '0.7.12'.freeze + VERSION = '0.7.13'.freeze end diff --git a/ruby/rubocop.yml b/ruby/rubocop.yml index 3fa0b04..9e80143 100644 --- a/ruby/rubocop.yml +++ b/ruby/rubocop.yml @@ -366,6 +366,15 @@ Style/ConcatArrayLiterals: # new in 1.41 # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantdoublesplathashbraces Style/RedundantDoubleSplatHashBraces: # new in 1.41 Enabled: true +# https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessrescue +Lint/UselessRescue: # new in 1.43 + Enabled: true +# https://docs.rubocop.org/rubocop/cops_style.html#stylemaptoset +Style/MapToSet: # new in 1.42 + Enabled: true +# https://docs.rubocop.org/rubocop/cops_style.html#styleminmaxcomparison +Style/MinMaxComparison: # new in 1.42 + Enabled: true # ============================================================ # Lint diff --git a/sgcop.gemspec b/sgcop.gemspec index a26839d..7854685 100644 --- a/sgcop.gemspec +++ b/sgcop.gemspec @@ -31,7 +31,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rake', '~> 13.0' spec.add_development_dependency 'rspec', '~> 3.9' spec.add_development_dependency 'debug' - spec.add_dependency 'rubocop', '~> 1.41.0' + spec.add_dependency 'rubocop', '~> 1.43.0' spec.add_dependency 'rubocop-performance', '~> 1.15.0' spec.add_dependency 'rubocop-rails', '~> 2.17.0' spec.add_dependency 'rubocop-rake', '~> 0.6.0'