From 5f495396337b21e3370e4ef3a465b3bfdbbd526e Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 11 Apr 2025 09:39:39 +0000 Subject: [PATCH] Update RuboCop to 1.73 (#41884). git-svn-id: https://svn.redmine.org/redmine/trunk@23628 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 3 +++ .rubocop_todo.yml | 4 ++-- Gemfile | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 40783be33..79cf9cf89 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -270,6 +270,9 @@ Style/PerlBackrefs: Style/RaiseArgs: Enabled: false +Style/RedundantCondition: + Enabled: false + Style/RedundantConstantBase: Exclude: - 'config/environments/production.rb' diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index fbb4e1416..acd05c841 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.72.2. +# using RuboCop version 1.73.2. # 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 @@ -310,7 +310,7 @@ Naming/RescuedExceptionsVariableName: - 'lib/redmine/scm/adapters/abstract_adapter.rb' - 'lib/redmine/scm/adapters/filesystem_adapter.rb' -# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns. +# Configuration parameters: EnforcedStyle, AllowedIdentifiers, AllowedPatterns, ForbiddenIdentifiers, ForbiddenPatterns. # SupportedStyles: snake_case, camelCase Naming/VariableName: Exclude: diff --git a/Gemfile b/Gemfile index 3deb4f891..c27a2c959 100644 --- a/Gemfile +++ b/Gemfile @@ -111,7 +111,7 @@ group :test do gem "capybara", ">= 3.39" gem 'selenium-webdriver', '>= 4.11.0' # RuboCop - gem 'rubocop', '~> 1.72.2', require: false + gem 'rubocop', '~> 1.73.2', require: false gem 'rubocop-performance', '~> 1.23.0', require: false gem 'rubocop-rails', '~> 2.29.0', require: false gem 'bundle-audit', require: false