Fix Rubocop Style/ArgumentsForwarding (#42496).

git-svn-id: https://svn.redmine.org/redmine/trunk@23698 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2025-04-21 05:57:01 +00:00
parent 3407711118
commit a1b5495e89
25 changed files with 103 additions and 103 deletions

View File

@@ -110,8 +110,8 @@ module Redmine
end
private_class_method :add
def self.field_attributes(*args)
CustomField.store_accessor :format_store, *args
def self.field_attributes(*)
CustomField.store_accessor(:format_store, *)
end
field_attributes :url_pattern, :full_width_layout

View File

@@ -65,9 +65,9 @@ module Redmine
end
# Localizes the given args with user's language
def lu(user, *args)
def lu(user, *)
lang = user.try(:language).presence || Setting.default_language
ll(lang, *args)
ll(lang, *)
end
def format_date(date)

View File

@@ -406,8 +406,8 @@ module Redmine
# Meeting.find_events('scrums', User.current, 5.days.ago, Date.today, :project => foo) # events for project foo only
#
# Note that :view_scrums permission is required to view these events in the activity view.
def activity_provider(*args)
Redmine::Activity.register(*args)
def activity_provider(*)
Redmine::Activity.register(*)
end
# Registers a wiki formatter.
@@ -423,8 +423,8 @@ module Redmine
# Examples:
# wiki_format_provider(:custom_formatter, CustomFormatter, :label => "My custom formatter")
#
def wiki_format_provider(name, *args)
Redmine::WikiFormatting.register(name, *args)
def wiki_format_provider(name, *)
Redmine::WikiFormatting.register(name, *)
end
# Register plugin models that use acts_as_attachable.

View File

@@ -48,8 +48,8 @@ module Redmine
normalize!
end
def add(*args)
self.class.new(self).add!(*args)
def add(*)
self.class.new(self).add!(*)
end
def first_key

View File

@@ -38,10 +38,10 @@ module Redmine
end
# Returns an instance of the given subclass name
def new_subclass_instance(class_name, *args)
def new_subclass_instance(class_name, *)
klass = get_subclass(class_name)
if klass
klass.new(*args)
klass.new(*)
end
end
end