From cd102e751889c13ce7b54de94888547d3eb8a177 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 10 Apr 2022 07:34:52 +0000 Subject: [PATCH] Update RuboCop to 1.27 (#36919). git-svn-id: https://svn.redmine.org/redmine/trunk@21527 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop_todo.yml | 5 ++--- Gemfile | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 12e2fe5f3..9b7058710 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `rubocop --auto-gen-config --exclude-limit 20 --no-offense-counts --no-auto-gen-timestamp` -# using RuboCop version 1.26.0. +# using RuboCop version 1.27.0. # The point is for the user to remove these configuration records # one by one as the offenses are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -1188,7 +1188,6 @@ Style/DoubleNegation: - 'app/models/mailer.rb' - 'app/models/query.rb' - 'app/models/user.rb' - - 'lib/redmine/sudo_mode.rb' # This cop supports safe auto-correction (--auto-correct). Style/EachWithObject: @@ -1691,7 +1690,7 @@ Style/RescueStandardError: Enabled: false # This cop supports safe auto-correction (--auto-correct). -# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods. +# Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength. # AllowedMethods: present?, blank?, presence, try, try! Style/SafeNavigation: Enabled: false diff --git a/Gemfile b/Gemfile index c6848898f..c9d9af50c 100644 --- a/Gemfile +++ b/Gemfile @@ -100,7 +100,7 @@ group :test do gem "selenium-webdriver", "~> 3.142.7" gem 'webdrivers', '4.6.1', require: false # RuboCop - gem 'rubocop', '~> 1.26.0' + gem 'rubocop', '~> 1.27.0' gem 'rubocop-performance', '~> 1.13.0' gem 'rubocop-rails', '~> 2.14.0' end