diff --git a/Library/Homebrew/cask/artifact/abstract_uninstall.rb b/Library/Homebrew/cask/artifact/abstract_uninstall.rb index 4ed93fe16a..a898556c77 100644 --- a/Library/Homebrew/cask/artifact/abstract_uninstall.rb +++ b/Library/Homebrew/cask/artifact/abstract_uninstall.rb @@ -38,7 +38,7 @@ module Cask def initialize(cask, **directives) directives.assert_valid_keys(*ORDERED_DIRECTIVES) - super(cask, **directives) + super directives[:signal] = Array(directives[:signal]).flatten.each_slice(2).to_a @directives = directives diff --git a/Library/Homebrew/cask/artifact/binary.rb b/Library/Homebrew/cask/artifact/binary.rb index c28355025d..cb349c8f3c 100644 --- a/Library/Homebrew/cask/artifact/binary.rb +++ b/Library/Homebrew/cask/artifact/binary.rb @@ -8,7 +8,7 @@ module Cask # Artifact corresponding to the `binary` stanza. class Binary < Symlinked def link(command: nil, **options) - super(command:, **options) + super return if source.executable? if source.writable? diff --git a/Library/Homebrew/cask/artifact/installer.rb b/Library/Homebrew/cask/artifact/installer.rb index 3a746b17cc..b8ff7e405a 100644 --- a/Library/Homebrew/cask/artifact/installer.rb +++ b/Library/Homebrew/cask/artifact/installer.rb @@ -69,7 +69,7 @@ module Cask attr_reader :path, :args def initialize(cask, **args) - super(cask, **args) + super if args.key?(:manual) @path = Pathname(args[:manual]) diff --git a/Library/Homebrew/cask/artifact/keyboard_layout.rb b/Library/Homebrew/cask/artifact/keyboard_layout.rb index 6b5364af14..37160ee357 100644 --- a/Library/Homebrew/cask/artifact/keyboard_layout.rb +++ b/Library/Homebrew/cask/artifact/keyboard_layout.rb @@ -8,12 +8,12 @@ module Cask # Artifact corresponding to the `keyboard_layout` stanza. class KeyboardLayout < Moved def install_phase(**options) - super(**options) + super delete_keyboard_layout_cache(**options) end def uninstall_phase(**options) - super(**options) + super delete_keyboard_layout_cache(**options) end diff --git a/Library/Homebrew/cask/artifact/mdimporter.rb b/Library/Homebrew/cask/artifact/mdimporter.rb index ae0327f40f..204699acd4 100644 --- a/Library/Homebrew/cask/artifact/mdimporter.rb +++ b/Library/Homebrew/cask/artifact/mdimporter.rb @@ -13,7 +13,7 @@ module Cask end def install_phase(**options) - super(**options) + super reload_spotlight(**options) end diff --git a/Library/Homebrew/cask/artifact/pkg.rb b/Library/Homebrew/cask/artifact/pkg.rb index 313832b61f..8c6e400086 100644 --- a/Library/Homebrew/cask/artifact/pkg.rb +++ b/Library/Homebrew/cask/artifact/pkg.rb @@ -19,7 +19,7 @@ module Cask end def initialize(cask, path, **stanza_options) - super(cask, path, **stanza_options) + super @path = cask.staged_path.join(path) @stanza_options = stanza_options end diff --git a/Library/Homebrew/cask/artifact/qlplugin.rb b/Library/Homebrew/cask/artifact/qlplugin.rb index f38164ff1c..ad7643def9 100644 --- a/Library/Homebrew/cask/artifact/qlplugin.rb +++ b/Library/Homebrew/cask/artifact/qlplugin.rb @@ -13,12 +13,12 @@ module Cask end def install_phase(**options) - super(**options) + super reload_quicklook(**options) end def uninstall_phase(**options) - super(**options) + super reload_quicklook(**options) end diff --git a/Library/Homebrew/cask/artifact/relocated.rb b/Library/Homebrew/cask/artifact/relocated.rb index 5a66fd5cc8..4bfaf185aa 100644 --- a/Library/Homebrew/cask/artifact/relocated.rb +++ b/Library/Homebrew/cask/artifact/relocated.rb @@ -38,7 +38,7 @@ module Cask .void } def initialize(cask, source, **target_hash) - super(cask, source, **target_hash) + super target = target_hash[:target] @source_string = source.to_s diff --git a/Library/Homebrew/cask/dsl/caveats.rb b/Library/Homebrew/cask/dsl/caveats.rb index 865b9ada10..77c9f49d01 100644 --- a/Library/Homebrew/cask/dsl/caveats.rb +++ b/Library/Homebrew/cask/dsl/caveats.rb @@ -20,7 +20,7 @@ module Cask attr_predicate :discontinued? def initialize(*args) - super(*args) + super @built_in_caveats = {} @custom_caveats = [] @discontinued = false diff --git a/Library/Homebrew/cli/args.rb b/Library/Homebrew/cli/args.rb index 0926546cdb..0e5ecd7263 100644 --- a/Library/Homebrew/cli/args.rb +++ b/Library/Homebrew/cli/args.rb @@ -15,7 +15,7 @@ module Homebrew def initialize require "cli/named_args" - super() + super @processed_options = [] @options_only = [] diff --git a/Library/Homebrew/dependency.rb b/Library/Homebrew/dependency.rb index aff96c1840..bd245d4d4f 100644 --- a/Library/Homebrew/dependency.rb +++ b/Library/Homebrew/dependency.rb @@ -256,7 +256,7 @@ class UsesFromMacOSDependency < Dependency sig { params(minimum_version: T.nilable(Version), minimum_revision: T.nilable(Integer)).returns(T::Boolean) } def installed?(minimum_version: nil, minimum_revision: nil) - use_macos_install? || super(minimum_version:, minimum_revision:) + use_macos_install? || super end sig { returns(T::Boolean) } diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 93d407d833..656a61823a 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -146,11 +146,11 @@ class AbstractDownloadStrategy private def puts(*args) - super(*args) unless quiet? + super unless quiet? end def ohai(*args) - super(*args) unless quiet? + super unless quiet? end def silent_command(*args, **options) @@ -605,7 +605,7 @@ class HomebrewCurlDownloadStrategy < CurlDownloadStrategy raise HomebrewCurlDownloadStrategyError, url unless Formula["curl"].any_version_installed? options[:use_homebrew_curl] = true - super(*args, **options) + super end end @@ -620,7 +620,7 @@ class CurlGitHubPackagesDownloadStrategy < CurlDownloadStrategy # GitHub Packages authorization header. # HOMEBREW_GITHUB_PACKAGES_AUTH set in brew.sh meta[:headers] << "Authorization: #{HOMEBREW_GITHUB_PACKAGES_AUTH}" - super(url, name, version, **meta) + super end private diff --git a/Library/Homebrew/extend/ENV/std.rb b/Library/Homebrew/extend/ENV/std.rb index 7793727c1c..f03e56c86e 100644 --- a/Library/Homebrew/extend/ENV/std.rb +++ b/Library/Homebrew/extend/ENV/std.rb @@ -128,7 +128,7 @@ module Stdenv sig { void } def clang - super() + super replace_in_cflags(/-Xarch_#{Hardware::CPU.arch_32_bit} (-march=\S*)/, '\1') map = Hardware::CPU.optimization_flags.dup if DevelopmentTools.clang_build_version < 700 diff --git a/Library/Homebrew/install_renamed.rb b/Library/Homebrew/install_renamed.rb index b16d82893b..9651ec2cc7 100644 --- a/Library/Homebrew/install_renamed.rb +++ b/Library/Homebrew/install_renamed.rb @@ -21,11 +21,11 @@ module InstallRenamed end def +(other) - super(other).extend(InstallRenamed) + super.extend(InstallRenamed) end def /(other) - super(other).extend(InstallRenamed) + super.extend(InstallRenamed) end private diff --git a/Library/Homebrew/manpages/converter/kramdown.rb b/Library/Homebrew/manpages/converter/kramdown.rb index 9e5ba73d31..413308edbb 100644 --- a/Library/Homebrew/manpages/converter/kramdown.rb +++ b/Library/Homebrew/manpages/converter/kramdown.rb @@ -22,7 +22,7 @@ module Homebrew # Don't duplicate the URL if the link text is the same as the URL. "<#{text}>" else - super(element, options) + super end end end diff --git a/Library/Homebrew/requirements/arch_requirement.rb b/Library/Homebrew/requirements/arch_requirement.rb index 9db2d151ca..1b501f11fb 100644 --- a/Library/Homebrew/requirements/arch_requirement.rb +++ b/Library/Homebrew/requirements/arch_requirement.rb @@ -11,7 +11,7 @@ class ArchRequirement < Requirement def initialize(tags) @arch = tags.shift - super(tags) + super end satisfy(build_env: false) do diff --git a/Library/Homebrew/requirements/codesign_requirement.rb b/Library/Homebrew/requirements/codesign_requirement.rb index 74e73905f7..119ea2f79c 100644 --- a/Library/Homebrew/requirements/codesign_requirement.rb +++ b/Library/Homebrew/requirements/codesign_requirement.rb @@ -13,7 +13,7 @@ class CodesignRequirement < Requirement @identity = options.fetch(:identity) @with = options.fetch(:with, "code signing") @url = options.fetch(:url, nil) - super(tags) + super end satisfy(build_env: false) do diff --git a/Library/Homebrew/requirements/macos_requirement.rb b/Library/Homebrew/requirements/macos_requirement.rb index 0e7e0cd06e..db0538aff7 100644 --- a/Library/Homebrew/requirements/macos_requirement.rb +++ b/Library/Homebrew/requirements/macos_requirement.rb @@ -88,7 +88,7 @@ class MacOSRequirement < Requirement end def ==(other) - super(other) && comparator == other.comparator && version == other.version + super && comparator == other.comparator && version == other.version end alias eql? == diff --git a/Library/Homebrew/requirements/xcode_requirement.rb b/Library/Homebrew/requirements/xcode_requirement.rb index 0494fd5fae..687119d8b9 100644 --- a/Library/Homebrew/requirements/xcode_requirement.rb +++ b/Library/Homebrew/requirements/xcode_requirement.rb @@ -16,7 +16,7 @@ class XcodeRequirement < Requirement def initialize(tags = []) @version = tags.shift if tags.first.to_s.match?(/(\d\.)+\d/) - super(tags) + super end sig { returns(T::Boolean) } diff --git a/Library/Homebrew/resource.rb b/Library/Homebrew/resource.rb index ad0cca0136..4fb883edbb 100644 --- a/Library/Homebrew/resource.rb +++ b/Library/Homebrew/resource.rb @@ -143,7 +143,7 @@ class Resource < Downloadable def fetch(verify_download_integrity: true) fetch_patches - super(verify_download_integrity:) + super end # {Livecheck} can be used to check for newer versions of the software. diff --git a/Library/Homebrew/standalone/sorbet.rb b/Library/Homebrew/standalone/sorbet.rb index aec651361d..9cd7fa24a8 100644 --- a/Library/Homebrew/standalone/sorbet.rb +++ b/Library/Homebrew/standalone/sorbet.rb @@ -13,19 +13,19 @@ unless ENV["HOMEBREW_SORBET_RUNTIME"] # @private module TNoChecks def cast(value, type, checked: false) - super(value, type, checked:) + super end def let(value, type, checked: false) - super(value, type, checked:) + super end def bind(value, type, checked: false) - super(value, type, checked:) + super end def assert_type!(value, type, checked: false) - super(value, type, checked:) + super end end diff --git a/Library/Homebrew/test/cmd/update-report_spec.rb b/Library/Homebrew/test/cmd/update-report_spec.rb index 9bbbf3af12..bb7844084d 100644 --- a/Library/Homebrew/test/cmd/update-report_spec.rb +++ b/Library/Homebrew/test/cmd/update-report_spec.rb @@ -18,7 +18,7 @@ RSpec.describe Homebrew::Cmd::UpdateReport do ENV["HOMEBREW_UPDATE_BEFORE#{tap.repo_var_suffix}"] = "12345678" ENV["HOMEBREW_UPDATE_AFTER#{tap.repo_var_suffix}"] = "abcdef00" - super(tap) + super end end end diff --git a/Library/Homebrew/yard/docstring_parser.rb b/Library/Homebrew/yard/docstring_parser.rb index 41770c4102..8528295a81 100644 --- a/Library/Homebrew/yard/docstring_parser.rb +++ b/Library/Homebrew/yard/docstring_parser.rb @@ -23,7 +23,7 @@ module Homebrew # Ignore non-documentation comments. content = content&.sub(/\A(typed|.*rubocop):.*/m, "") - content = super(content) + content = super source = handler&.statement&.source