1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-31 11:37:14 +00:00

Disable RuboCop Lint/InterpolationCheck for USER_FORMATS in app/models/user.rb (#39887).

git-svn-id: https://svn.redmine.org/redmine/trunk@23005 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2024-09-01 01:02:38 +00:00
parent 9f1059c13d
commit 2190a4b417
2 changed files with 2 additions and 5 deletions

View File

@ -202,11 +202,6 @@ Lint/FloatComparison:
Exclude:
- 'test/system/timelog_test.rb'
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/InterpolationCheck:
Exclude:
- 'app/models/user.rb'
# This cop supports unsafe autocorrection (--autocorrect-all).
Lint/Loop:
Exclude:

View File

@ -24,6 +24,7 @@ class User < Principal
include Redmine::SafeAttributes
# Different ways of displaying/sorting users
# rubocop:disable Lint/InterpolationCheck
USER_FORMATS = {
:firstname_lastname => {
:string => '#{firstname} #{lastname}',
@ -71,6 +72,7 @@ class User < Principal
:setting_order => 8
},
}
# rubocop:enable Lint/InterpolationCheck
MAIL_NOTIFICATION_OPTIONS = [
['all', :label_user_mail_option_all],