diff --git a/Library/Homebrew/bundle/commands/install.rb b/Library/Homebrew/bundle/commands/install.rb index 03ce65774e..2b829d0420 100644 --- a/Library/Homebrew/bundle/commands/install.rb +++ b/Library/Homebrew/bundle/commands/install.rb @@ -1,4 +1,4 @@ -# typed: true # rubocop:todo Sorbet/StrictSigil +# typed: strict # frozen_string_literal: true require "bundle/brewfile" @@ -8,6 +8,17 @@ module Homebrew module Bundle module Commands module Install + sig { + params( + global: T::Boolean, + file: T.nilable(String), + no_lock: T::Boolean, + no_upgrade: T::Boolean, + verbose: T::Boolean, + force: T::Boolean, + quiet: T::Boolean, + ).void + } def self.run(global: false, file: nil, no_lock: false, no_upgrade: false, verbose: false, force: false, quiet: false) @dsl = Brewfile.read(global:, file:) @@ -17,7 +28,9 @@ module Homebrew ) || exit(1) end + sig { returns(T.nilable(Dsl)) } def self.dsl + @dsl ||= T.let(nil, T.nilable(Dsl)) @dsl end end