Set TargetRailsVersion of RuboCop to 8.0 (#43205).

git-svn-id: https://svn.redmine.org/redmine/trunk@24128 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-11-05 08:15:11 +00:00
parent f28c12a997
commit adb7ce6161
2 changed files with 10 additions and 1 deletions

View File

@@ -2,7 +2,7 @@ inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 3.2
TargetRailsVersion: 7.2
TargetRailsVersion: 8.0
NewCops: enable

View File

@@ -554,6 +554,15 @@ Rails/ShortI18n:
- 'test/unit/version_test.rb'
- 'test/unit/wiki_page_test.rb'
# This cop supports unsafe autocorrection (--autocorrect-all).
Rails/StrongParametersExpect:
Exclude:
- 'app/controllers/attachments_controller.rb'
- 'app/controllers/custom_field_enumerations_controller.rb'
- 'app/controllers/principal_memberships_controller.rb'
- 'app/controllers/project_enumerations_controller.rb'
- 'app/controllers/webhooks_controller.rb'
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: strict, flexible