]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/SuperWithArgsParentheses (#39887).
authorGo MAEDA <maeda@farend.jp>
Wed, 20 Dec 2023 07:15:11 +0000 (07:15 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 20 Dec 2023 07:15:11 +0000 (07:15 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22530 e93f8b46-1217-0410-a6f0-8f06a7374b81

13 files changed:
app/helpers/application_helper.rb
app/models/issue.rb
app/models/issue_query.rb
app/models/mailer.rb
app/models/project_query.rb
app/models/time_entry_query.rb
app/models/user_query.rb
app/models/wiki_page.rb
config/initializers/10-patches.rb
lib/redmine/export/csv.rb
lib/redmine/menu_manager.rb
lib/redmine/wiki_formatting/common_mark/markdown_filter.rb
test/test_helper.rb

index ef94688d49e442d35aafa6db7ed0e0c6d49b8ed4..e1b22eb755517eef4f0c3af14b2d1683d26f9b3a 100644 (file)
@@ -1675,7 +1675,7 @@ module ApplicationHelper
         source
       end
     end
-    super *sources, options
+    super(*sources, options)
   end
 
   # Overrides Rails' image_tag with themes and plugins support.
@@ -1689,7 +1689,7 @@ module ApplicationHelper
     elsif current_theme && current_theme.images.include?(source)
       source = current_theme.image_path(source)
     end
-    super source, options
+    super(source, options)
   end
 
   # Overrides Rails' javascript_include_tag with plugins support
@@ -1708,7 +1708,7 @@ module ApplicationHelper
         end
       end
     end
-    super *sources, options
+    super(*sources, options)
   end
 
   def sidebar_content?
index 8c8947bacbdaf460f6358547c3af42f44f6241a2..ac0786d335514435aed64c871dc1bfbb7039aa1c 100644 (file)
@@ -475,7 +475,7 @@ class Issue < ActiveRecord::Base
         send "#{attr}=", attrs.delete(attr)
       end
     end
-    super attrs, *args
+    super(attrs, *args)
   end
 
   def attributes=(new_attributes)
index 9e1e1c432983a82fd414104cd0be9c9c97228f3c..1e08794ddf89204b69cf1455bc15dacb6b4d3feb 100644 (file)
@@ -97,7 +97,7 @@ class IssueQuery < Query
   end
 
   def initialize(attributes=nil, *args)
-    super attributes
+    super(attributes)
     self.filters ||= {'status_id' => {:operator => "o", :values => [""]}}
   end
 
index 689e31901cadfd5b5204d3918c5f5aedcb80092a..c4c7ab07fe261f1776073a6c51e401645882b6e1 100644 (file)
@@ -714,9 +714,9 @@ class Mailer < ActionMailer::Base
     end
 
     if block
-      super headers, &block
+      super(headers, &block)
     else
-      super headers do |format|
+      super(headers) do |format|
         format.text
         format.html unless Setting.plain_text_mail?
       end
index 4224c0c37b43a0ee18cfa820c06844a992325fd0..714136f6ff6d3a994f9d4894bb8451f080c44ced 100644 (file)
@@ -52,7 +52,7 @@ class ProjectQuery < Query
   end
 
   def initialize(attributes=nil, *args)
-    super attributes
+    super(attributes)
     self.filters ||= {'status' => {:operator => "=", :values => ['1']}}
   end
 
index b586350ca2c9e2fe49fc865a89043c25d83a777e..28cf11438f86f4f10e6abd93abaf741a3c395c9e 100644 (file)
@@ -40,7 +40,7 @@ class TimeEntryQuery < Query
   ]
 
   def initialize(attributes=nil, *args)
-    super attributes
+    super(attributes)
     self.filters ||= {'spent_on' => {:operator => "*", :values => []}}
   end
 
index cd3a5172bfb9eae40383a2b87910b14ca4bfe300..2ee71cc5454dd5a7541ba6c447b58b2ac786d965 100644 (file)
@@ -34,7 +34,7 @@ class UserQuery < Query
   ]
 
   def initialize(attributes=nil, *args)
-    super attributes
+    super(attributes)
     self.filters ||= { 'status' => {operator: "=", values: [User::STATUS_ACTIVE]} }
   end
 
index 0ee06673e165a7f94873ccae841b4f9126536086..ea9d079e82fa696d37589ac2db523a68aa927d37 100644 (file)
@@ -108,7 +108,7 @@ class WikiPage < ActiveRecord::Base
       end
     end
 
-    super attrs, user
+    super(attrs, user)
   end
 
   # Manages redirects if page is renamed or moved
index 4869b3b839e6bf64aa2f93a5c46fc4f54d3115d6..9a323896393b2ebb4ed3000374e1a875274b3ec4 100644 (file)
@@ -145,7 +145,7 @@ module ActionView
       if (Array(values) & [:xml, :json]).any?
         values << :api
       end
-      super values
+      super(values)
     end
   end)
 end
index c55546347ce4b30f7d4df7c3f14b14b213bd5716..8606eb43812c4dadfdcf7873d95a93342c3f903d 100644 (file)
@@ -57,7 +57,7 @@ module Redmine
               field
             end
           end
-          super row
+          super(row)
         end
       end
     end
index 4f5556cf831522baa5c53f1c1d642028f4ce900d..6f4e1b54fc065ae8ed5b044cd50642fe9d5c391f 100644 (file)
@@ -453,7 +453,7 @@ module Redmine
         @parent = options[:parent]
         @child_menus = options[:children]
         @last = options[:last] || false
-        super @name.to_sym
+        super(@name.to_sym)
       end
 
       def caption(project=nil)
index bef43413f06e8f00ce879397623622ecc79b8d5e..9c05389f1931ba9e572fad3e61194beb55768fa4 100644 (file)
@@ -27,7 +27,7 @@ module Redmine
       # options
       class MarkdownFilter < HTML::Pipeline::TextFilter
         def initialize(text, context = nil, result = nil)
-          super text, context, result
+          super(text, context, result)
           @text = @text.delete "\r"
         end
 
index 19fa1ca4fc0030a59a78f7dd5f3821df12b569ce..45fedd8e7583906eebbfc385b85c15477b198aa0 100644 (file)
@@ -489,7 +489,7 @@ module Redmine
 
         API_FORMATS.each do |format|
           format_request = request.sub /$/, ".#{format}"
-          super options.merge(format_request => arg[request], :format => format)
+          super(options.merge(format_request => arg[request], :format => format))
         end
       end
     end