Merge pull request #11579 from hyuraku/repair_Diagnostic_Checks_all
repair Diagnostic::Checks#all
This commit is contained in:
commit
f04e5d6700
@ -38,7 +38,7 @@ module Homebrew
|
|||||||
checks = Diagnostic::Checks.new(verbose: args.verbose?)
|
checks = Diagnostic::Checks.new(verbose: args.verbose?)
|
||||||
|
|
||||||
if args.list_checks?
|
if args.list_checks?
|
||||||
puts checks.all.sort
|
puts checks.all
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ module Homebrew
|
|||||||
check_for_broken_symlinks
|
check_for_broken_symlinks
|
||||||
check_missing_deps
|
check_missing_deps
|
||||||
]
|
]
|
||||||
methods = (checks.all.sort - slow_checks) + slow_checks
|
methods = (checks.all - slow_checks) + slow_checks
|
||||||
methods -= checks.cask_checks if Cask::Caskroom.casks.blank?
|
methods -= checks.cask_checks if Cask::Caskroom.casks.blank?
|
||||||
else
|
else
|
||||||
methods = args.named
|
methods = args.named
|
||||||
|
|||||||
@ -1043,7 +1043,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
|
|
||||||
def all
|
def all
|
||||||
methods.map(&:to_s).grep(/^check_/)
|
methods.map(&:to_s).grep(/^check_/).sort
|
||||||
end
|
end
|
||||||
|
|
||||||
def cask_checks
|
def cask_checks
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user