]> source.dussan.org Git - redmine.git/commitdiff
Fix RuboCop offense Style/SuperArguments (#39887).
authorGo MAEDA <maeda@farend.jp>
Thu, 23 May 2024 11:25:16 +0000 (11:25 +0000)
committerGo MAEDA <maeda@farend.jp>
Thu, 23 May 2024 11:25:16 +0000 (11:25 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22842 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/helpers/application_helper.rb
app/models/mailer.rb
app/models/project.rb
app/models/project_custom_field.rb
app/models/repository/cvs.rb
app/models/version.rb
app/models/wiki_page.rb
config/initializers/10-patches.rb
lib/redmine/export/csv.rb
lib/redmine/export/pdf.rb
lib/redmine/wiki_formatting/common_mark/markdown_filter.rb

index 910f1f431db76592abe53ed2d3ca7abf574fea23..1dd96cbadf880452b6f59277ad5dc68ed8cf631f 100644 (file)
@@ -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
   end
 
   # Overrides Rails' javascript_include_tag with plugins support
index 716482ec3f60b09acfc9d9008a503c8c987532d7..ddbc7b39416340315f7152dd32407e239b8a9421 100644 (file)
@@ -53,7 +53,7 @@ class Mailer < ActionMailer::Base
       lang ||= Setting.default_language
       set_language_if_valid(lang)
 
-      super(action, *args)
+      super
     ensure
       User.current = initial_user
       ::I18n.locale = initial_language
@@ -714,7 +714,7 @@ class Mailer < ActionMailer::Base
     end
 
     if block
-      super(headers, &block)
+      super
     else
       super(headers) do |format|
         format.text
index 909080a112d5f9bf472d942abe81ddc53fd2f584..09927b4cc568f089b8af68daa9865e48cc83db95 100644 (file)
@@ -902,7 +902,7 @@ class Project < ApplicationRecord
       attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
     end
 
-    super(attrs, user)
+    super
   end
 
   # Returns an auto-generated project identifier based on the last identifier used
index be2892b56fc03ad00c54997a43970370be9e8182..6c11b225f1440b85dd912886ccd48801c0dbd99a 100644 (file)
@@ -28,6 +28,6 @@ class ProjectCustomField < CustomField
 
   def visibility_by_project_condition(project_key=nil, user=User.current, id_column=nil)
     project_key ||= "#{Project.table_name}.id"
-    super(project_key, user, id_column)
+    super
   end
 end
index 532f8b3286570746eb1aa966f8c981eb62d5dfda..6797c1893cf3b8ace0fb92b470647cb5654f038f 100644 (file)
@@ -204,7 +204,7 @@ class Repository::Cvs < Repository
   # Overrides Repository#validate_repository_path to validate
   # against root_url attribute.
   def validate_repository_path(attribute=:root_url)
-    super(attribute)
+    super
   end
 
   private
index ec1a9f77b53426c73ed8fe7fb07281c958ff48ef..937ec9221c75e70243a73b04104eff64f4150377 100644 (file)
@@ -187,7 +187,7 @@ class Version < ApplicationRecord
       attrs['custom_fields'].reject! {|c| !editable_custom_field_ids.include?(c['id'].to_s)}
     end
 
-    super(attrs, user)
+    super
   end
 
   # Returns true if +user+ or current user is allowed to view the version
index 4f7e55c39094fa529231a96226cd7ef350b4950a..cf23612c0f1d741bf299286b5a0c1de32c613977 100644 (file)
@@ -108,7 +108,7 @@ class WikiPage < ApplicationRecord
       end
     end
 
-    super(attrs, user)
+    super
   end
 
   # Manages redirects if page is renamed or moved
@@ -210,7 +210,7 @@ class WikiPage < ApplicationRecord
   end
 
   def attachments_deletable?(usr=User.current)
-    editable_by?(usr) && super(usr)
+    editable_by?(usr) && super
   end
 
   def parent_title
index 20d442add8849f290aa42332b2e438ab6479eb8e..df8afc291b434f28e00ed2171809911fed56b0e9 100644 (file)
@@ -98,7 +98,7 @@ module ActionView
       if (Array(values) & [:xml, :json]).any?
         values << :api
       end
-      super(values)
+      super
     end
   end)
 end
index 9e0f23c5c22b28b5229bb9959178344d4d4c261d..8e56b38f33cc3356487912fb06b9f992e9d421b6 100644 (file)
@@ -57,7 +57,7 @@ module Redmine
               field
             end
           end
-          super(row)
+          super
         end
       end
     end
index a0aeec0c97e767241567b336f80ea66b54c1d5e1..acb09bdce44afb078c3285c3d7fb9c4dcf4c83c0 100644 (file)
@@ -57,7 +57,7 @@ module Redmine
           style.delete!('I') if family.to_s.casecmp('dejavusans') == 0 && current_language.to_s.casecmp("vi") != 0
           # DejaVuSansMono Italic Arabic font has problem
           style.delete!('I') if family.to_s.casecmp('dejavusansmono') == 0
-          super(family, style, size, fontfile)
+          super
         end
         alias_method :set_font, :SetFont
 
index 8b28c2e95fd7417867aaafb3a0730b347bb4bfdc..916c8883c4e339fdd4340eb57982172d9109817c 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 = @text.delete "\r"
         end