Skip to content
Snippets Groups Projects
Unverified Commit 9fbe13c1 authored by Markus Reiter's avatar Markus Reiter Committed by GitHub
Browse files

Merge pull request #8806 from reitermarkus/cask-audit

Allow passing tap to `brew cask audit`.
parents 48c05037 141be122
No related branches found
No related tags found
No related merge requests found
......@@ -54,8 +54,19 @@ module Cask
options[:quarantine] = true if options[:quarantine].nil?
failed_casks = casks(alternative: -> { Cask.to_a })
.reject do |cask|
casks = args.named.flat_map do |name|
if File.exist?(name)
name
elsif name.count("/") == 1
Tap.fetch(name).cask_files
else
name
end
end.map(&CaskLoader.public_method(:load))
casks = Cask.to_a if casks.empty?
failed_casks = casks.reject do |cask|
odebug "Auditing Cask #{cask}"
result = Auditor.audit(cask, **options)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment