summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2025-04-12 03:43:01 +0000
committerGo MAEDA <maeda@farend.jp>2025-04-12 03:43:01 +0000
commit2f443f840c1d22515914fa23b773b0d015800eaf (patch)
tree5843bdfda9c8b47ce47f52ce9b4b13fec691ed2c
parent92b7df7d4e67e0e81b1c5d3a5a4900692b8f5249 (diff)
downloadredmine-2f443f840c1d22515914fa23b773b0d015800eaf.tar.gz
redmine-2f443f840c1d22515914fa23b773b0d015800eaf.zip
Update Rubocop Rails to 2.31 (#42044).
git-svn-id: https://svn.redmine.org/redmine/trunk@23640 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--.rubocop.yml6
-rw-r--r--.rubocop_todo.yml6
-rw-r--r--Gemfile2
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