brew style --fix

This commit is contained in:
Mike McQuaid 2020-09-01 11:21:45 +01:00
parent dac8fc0ea4
commit e09147fe75
5 changed files with 9 additions and 9 deletions

View File

@ -144,7 +144,7 @@ module Homebrew
str
end
def deps_for_dependent(d, recursive: false, args:)
def deps_for_dependent(d, args:, recursive: false)
includes, ignores = args_includes_ignores(args)
deps = d.runtime_dependencies if @use_runtime_dependencies
@ -160,11 +160,11 @@ module Homebrew
deps + reqs.to_a
end
def deps_for_dependents(dependents, recursive: false, args:, &block)
def deps_for_dependents(dependents, args:, recursive: false, &block)
dependents.map { |d| deps_for_dependent(d, recursive: recursive, args: args) }.reduce(&block)
end
def puts_deps(dependents, recursive: false, args:)
def puts_deps(dependents, args:, recursive: false)
dependents.each do |dependent|
deps = deps_for_dependent(dependent, recursive: recursive, args: args)
condense_requirements(deps, args: args)
@ -174,7 +174,7 @@ module Homebrew
end
end
def puts_deps_tree(dependents, recursive: false, args:)
def puts_deps_tree(dependents, args:, recursive: false)
dependents.each do |d|
puts d.full_name
@dep_stack = []

View File

@ -464,7 +464,7 @@ module Homebrew
GitHub.check_for_duplicate_pull_requests(formula.name, tap_full_name, state: "open", args: args)
end
def check_closed_pull_requests(formula, tap_full_name, version: nil, url: nil, tag: nil, args:)
def check_closed_pull_requests(formula, tap_full_name, args:, version: nil, url: nil, tag: nil)
unless version
specs = {}
specs[:tag] = tag if tag

View File

@ -105,7 +105,7 @@ module Homebrew
end
end
def cherry_pick_pr!(pr, path: ".", args:)
def cherry_pick_pr!(pr, args:, path: ".")
if args.dry_run?
puts <<~EOS
git fetch --force origin +refs/pull/#{pr}/head
@ -149,7 +149,7 @@ module Homebrew
end
end
def mirror_formulae(tap, original_commit, publish: true, org:, repo:, args:)
def mirror_formulae(tap, original_commit, org:, repo:, args:, publish: true)
changed_formulae(tap, original_commit).select do |f|
stable_urls = [f.stable.url] + f.stable.mirrors
stable_urls.grep(%r{^https://dl.bintray.com/#{org}/#{repo}/}) do |mirror_url|

View File

@ -7,7 +7,7 @@ require "messages"
module Homebrew
module_function
def reinstall_formula(f, build_from_source: false, args:)
def reinstall_formula(f, args:, build_from_source: false)
return if args.dry_run?
if f.opt_prefix.directory?

View File

@ -121,7 +121,7 @@ module Utils
config_delete(:analyticsuuid)
end
def output(filter: nil, args:)
def output(args:, filter: nil)
days = args.days || "30"
category = args.category || "install"
json = formulae_brew_sh_json("analytics/#{category}/#{days}d.json")