brew style --fix

This commit is contained in:
Douglas Eichelberger 2023-04-17 10:59:47 -07:00
parent 09c679e75f
commit 7fdd75ad41
5 changed files with 319 additions and 325 deletions

View File

@ -360,7 +360,7 @@ module Homebrew
puts formula_names.join(" ")
end
end
end
end
end
require "extend/os/install"

View File

@ -50,8 +50,6 @@ module OS
# rubocop:disable Style/Documentation
module Mac
module_function
::MacOS = OS::Mac
raise "Loaded OS::Linux on generic OS!" if ENV["HOMEBREW_TEST_GENERIC_OS"]
@ -85,8 +83,6 @@ module OS
end
module Xcode
module_function
def self.version
::Version::NULL
end
@ -97,8 +93,6 @@ module OS
end
module CLT
module_function
def self.version
::Version::NULL
end

View File

@ -261,8 +261,6 @@ module OS
module CLT
extend T::Sig
module_function
# The original Mavericks CLT package ID
EXECUTABLE_PKG_ID = "com.apple.pkg.CLTools_Executables"
MAVERICKS_NEW_PKG_ID = "com.apple.pkg.CLTools_Base" # obsolete

View File

@ -182,7 +182,9 @@ module GitHub
EOS
end
def self.open_rest(url, data: nil, data_binary_path: nil, request_method: nil, scopes: [].freeze, parse_json: true)
def self.open_rest(
url, data: nil, data_binary_path: nil, request_method: nil, scopes: [].freeze, parse_json: true
)
# This is a no-op if the user is opting out of using the GitHub API.
return block_given? ? yield({}) : {} if Homebrew::EnvConfig.no_github_api?