brew style --fix
This commit is contained in:
parent
d780bd7734
commit
6e9288470e
@ -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
|
||||
|
||||
|
||||
@ -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?
|
||||
|
||||
@ -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])
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ module Cask
|
||||
end
|
||||
|
||||
def install_phase(**options)
|
||||
super(**options)
|
||||
super
|
||||
reload_spotlight(**options)
|
||||
end
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -20,7 +20,7 @@ module Cask
|
||||
attr_predicate :discontinued?
|
||||
|
||||
def initialize(*args)
|
||||
super(*args)
|
||||
super
|
||||
@built_in_caveats = {}
|
||||
@custom_caveats = []
|
||||
@discontinued = false
|
||||
|
||||
@ -15,7 +15,7 @@ module Homebrew
|
||||
def initialize
|
||||
require "cli/named_args"
|
||||
|
||||
super()
|
||||
super
|
||||
|
||||
@processed_options = []
|
||||
@options_only = []
|
||||
|
||||
@ -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) }
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -11,7 +11,7 @@ class ArchRequirement < Requirement
|
||||
|
||||
def initialize(tags)
|
||||
@arch = tags.shift
|
||||
super(tags)
|
||||
super
|
||||
end
|
||||
|
||||
satisfy(build_env: false) do
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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? ==
|
||||
|
||||
|
||||
@ -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) }
|
||||
|
||||
@ -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.
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user