diff --git a/Library/Homebrew/sorbet/files.yaml b/Library/Homebrew/sorbet/files.yaml index 3272ee517e..3498653eb4 100644 --- a/Library/Homebrew/sorbet/files.yaml +++ b/Library/Homebrew/sorbet/files.yaml @@ -229,7 +229,6 @@ false: - ./lock_file.rb - ./migrator.rb - ./missing_formula.rb - - ./os/linux.rb - ./os/mac.rb - ./os/mac/keg.rb - ./os/mac/mach.rb @@ -499,11 +498,8 @@ false: - ./messages.rb - ./mktemp.rb - ./options.rb - - ./os.rb - ./os/linux/elf.rb - - ./os/linux/glibc.rb - ./os/linux/global.rb - - ./os/linux/kernel.rb - ./os/mac/architecture_list.rb - ./pkg_version.rb - ./requirements/arch_requirement.rb @@ -879,6 +875,10 @@ true: - ./locale.rb - ./metafiles.rb - ./official_taps.rb + - ./os.rb + - ./os/linux.rb + - ./os/linux/glibc.rb + - ./os/linux/kernel.rb - ./rubocops/cask/ast/cask_header.rb - ./rubocops/cask/ast/stanza.rb - ./rubocops/cask/constants/stanza.rb diff --git a/Library/Homebrew/sorbet/rbi/os.rbi b/Library/Homebrew/sorbet/rbi/os.rbi new file mode 100644 index 0000000000..af39ccea3a --- /dev/null +++ b/Library/Homebrew/sorbet/rbi/os.rbi @@ -0,0 +1,14 @@ +# typed: true + +module OS + module Linux + include Kernel + + def which(cmd, path = ENV["PATH"]) + end + end + + module Mac + include Kernel + end +end