 823505a058
			
		
	
	
		823505a058
		
	
	
	
	
		
			
			- Inconsistent or unneeded indentation - Missing or superfluous empty lines - Missing or wrongly formatted arguments in command summary - Missing punctuation
		
			
				
	
	
		
			25 lines
		
	
	
		
			516 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			516 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| #:  * `missing` [<formulae>]:
 | |
| #:    Check the given <formulae> for missing dependencies. If no <formulae> are
 | |
| #:    given, check all installed brews.
 | |
| 
 | |
| require "formula"
 | |
| require "tab"
 | |
| require "diagnostic"
 | |
| 
 | |
| module Homebrew
 | |
|   def missing
 | |
|     return unless HOMEBREW_CELLAR.exist?
 | |
| 
 | |
|     ff = if ARGV.named.empty?
 | |
|       Formula.installed
 | |
|     else
 | |
|       ARGV.resolved_formulae
 | |
|     end
 | |
| 
 | |
|     Diagnostic.missing_deps(ff) do |name, missing|
 | |
|       print "#{name}: " if ff.size > 1
 | |
|       puts "#{missing * " "}"
 | |
|     end
 | |
|   end
 | |
| end
 |