From 645e91cfd3dfa12a93b0789a558669ea9554399a Mon Sep 17 00:00:00 2001 From: Dan Allen Date: Fri, 22 Jul 2022 16:31:06 -0600 Subject: [PATCH] upgrade RuboCop and configure new rules [no ci] --- .rubocop.yml | 4 ++++ Gemfile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index a0cff89a8..08ace4a8d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -128,6 +128,8 @@ Lint/RedundantDirGlobSort: Enabled: true Lint/RefinementImportMethods: Enabled: true +Lint/RequireRangeParentheses: + Enabled: true Lint/RequireRelativeSelfPath: Enabled: true Lint/SelfAssignment: @@ -306,6 +308,8 @@ Style/Documentation: Enabled: false # FIXME reenable Style/DoubleNegation: Enabled: true +Style/EmptyHeredoc: + Enabled: true Style/EmptyLiteral: Enabled: true Style/EndlessMethod: diff --git a/Gemfile b/Gemfile index c48751e9c..47f0ec1a6 100644 --- a/Gemfile +++ b/Gemfile @@ -27,7 +27,7 @@ group :lint do gem 'rubocop-rake', '~> 0.6.0', require: false gem 'rubocop-rspec', '~> 2.10.0', require: false else - gem 'rubocop', '~> 1.31.0', require: false + gem 'rubocop', '~> 1.32.0', require: false gem 'rubocop-rake', '~> 0.6.0', require: false gem 'rubocop-rspec', '~> 2.12.0', require: false end