From 2f443f840c1d22515914fa23b773b0d015800eaf Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 12 Apr 2025 03:43:01 +0000 Subject: [PATCH] Update Rubocop Rails to 2.31 (#42044). git-svn-id: https://svn.redmine.org/redmine/trunk@23640 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .rubocop.yml | 6 +----- .rubocop_todo.yml | 6 ------ Gemfile | 2 +- 3 files changed, 2 insertions(+), 12 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 06aedae47..686b0a0aa 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -17,13 +17,9 @@ AllCops: - '**/files/**/*' - 'db/schema.rb' -# Enable extensions - -require: - - rubocop-rails - plugins: - rubocop-performance + - rubocop-rails # Rules for Redmine diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index ee4544cc6..0ce1bc39c 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -565,12 +565,6 @@ Rails/RedundantTravelBack: - 'test/integration/sudo_mode_test.rb' - 'test/system/sudo_mode_test.rb' -# This cop supports unsafe autocorrection (--autocorrect-all). -Rails/ReflectionClassName: - Exclude: - - 'lib/redmine/nested_set/issue_nested_set.rb' - - 'lib/redmine/nested_set/project_nested_set.rb' - # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, Include. # SupportedStyles: assert_not, refute diff --git a/Gemfile b/Gemfile index 16096f97f..32a426361 100644 --- a/Gemfile +++ b/Gemfile @@ -113,7 +113,7 @@ group :test do # RuboCop gem 'rubocop', '~> 1.75.2', require: false gem 'rubocop-performance', '~> 1.25.0', require: false - gem 'rubocop-rails', '~> 2.29.0', require: false + gem 'rubocop-rails', '~> 2.31.0', require: false gem 'bundle-audit', require: false end