 a71d5e835f
			
		
	
	
		a71d5e835f
		
			
		
	
	
	
	
		
			
			Add the necessary changes for Sorbet `typed: strict` in more files. Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
		
			
				
	
	
		
			27 lines
		
	
	
		
			862 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			862 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| # typed: strict
 | |
| # frozen_string_literal: true
 | |
| 
 | |
| module Homebrew
 | |
|   module Bundle
 | |
|     module Checker
 | |
|       class TapChecker < Homebrew::Bundle::Checker::Base
 | |
|         PACKAGE_TYPE = :tap
 | |
|         PACKAGE_TYPE_NAME = "Tap"
 | |
| 
 | |
|         sig {
 | |
|           params(entries: T::Array[Homebrew::Bundle::Dsl::Entry], exit_on_first_error: T::Boolean,
 | |
|                  no_upgrade: T::Boolean, verbose: T::Boolean).returns(T::Array[String])
 | |
|         }
 | |
|         def find_actionable(entries, exit_on_first_error: false, no_upgrade: false, verbose: false)
 | |
|           requested_taps = format_checkable(entries)
 | |
|           return [] if requested_taps.empty?
 | |
| 
 | |
|           require "bundle/tap_dumper"
 | |
|           current_taps = Homebrew::Bundle::TapDumper.tap_names
 | |
|           (requested_taps - current_taps).map { |entry| "Tap #{entry} needs to be tapped." }
 | |
|         end
 | |
|       end
 | |
|     end
 | |
|   end
 | |
| end
 |