language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/cleaner.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
class Cleaner | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/dependency_collector.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class DependencyCollector | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/development_tools.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class DevelopmentTools | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/diagnostic.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
require "tempfile" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/extend/ENV/shared.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
module SharedEnvExtension | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/extend/ENV/std.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
module Stdenv | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/extend/ENV/super.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
module Superenv | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/extend/pathname.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
require "os/linux/elf" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/formula.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class Formula | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/formula_cellar_checks.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
module FormulaCellarChecks | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/hardware/cpu.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
module Hardware | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/install.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
module Homebrew | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/keg_relocate.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class Keg | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/linkage_checker.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class LinkageChecker | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/readall.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
module Readall | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/requirements/java_requirement.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
require "language/java" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/requirements/osxfuse_requirement.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
require "requirement" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/resource.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class Resource | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/software_spec.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
class BottleSpecification | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/system_config.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
require "formula" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/tap.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class CoreTap < Tap | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/linux/utils/analytics.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
module Utils | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/caveats.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class Caveats | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/cleaner.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class Cleaner | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/dependency_collector.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class DependencyCollector | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/development_tools.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
require "os/mac/xcode" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/diagnostic.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
module Homebrew | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/extend/ENV/shared.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
module SharedEnvExtension | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/extend/ENV/std.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
module Stdenv | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/extend/ENV/super.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
module Superenv | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/extend/pathname.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
require "os/mac/mach" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/formula.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class Formula | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/formula_cellar_checks.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
require "cache_store" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/formula_support.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
class KegOnlyReason | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/hardware.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
module Hardware | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/hardware/cpu.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
require "macho" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/keg.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class Keg | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/keg_relocate.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class Keg | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/language/java.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
module Language | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/missing_formula.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
require "cask/cmd/abstract_command" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/requirements/java_requirement.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
class JavaRequirement < Requirement | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/requirements/osxfuse_requirement.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
require "requirement" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/requirements/x11_requirement.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
require "requirement" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/resource.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
class Resource | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/search.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
require "cask/cask" | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/software_spec.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
class SoftwareSpec | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/system_config.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
module SystemConfig | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/unpack_strategy/zip.rb | @@ -1,3 +1,4 @@
+# typed: false
# frozen_string_literal: true
module UnpackStrategy | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/utils/analytics.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
module Utils | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/mac/utils/bottles.rb | @@ -1,3 +1,4 @@
+# typed: true
# frozen_string_literal: true
module Utils | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/missing_formula.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
require "extend/os/mac/missing_formula" if OS.mac? | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/pathname.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
if OS.mac? | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/readall.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
require "extend/os/linux/readall" if OS.linux? | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/requirements/java_requirement.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
if OS.mac? | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/requirements/osxfuse_requirement.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
if OS.mac? | true |
Other | Homebrew | brew | 24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json | Move type annotations into files. | Library/Homebrew/extend/os/requirements/x11_requirement.rb | @@ -1,3 +1,4 @@
+# typed: strict
# frozen_string_literal: true
require "extend/os/mac/requirements/x11_requirement" if OS.mac? | true |
Other | Homebrew | brew | 9a8f4c7c9645aed3a4141ac537da87eea2f477dc.json | cmd/info: Add support for casks | Library/Homebrew/cli/named_args.rb | @@ -38,6 +38,14 @@ def to_formulae_and_casks(only: nil, method: nil)
end
end
+ def to_formulae_casks_unknowns(method: nil)
+ downcased_unique_named.map do |name|
+ load_formula_or_cask(name, method: method)
+ rescue FormulaOrCaskUnavailableError => e
+ e
+ e... | true |
Other | Homebrew | brew | 9a8f4c7c9645aed3a4141ac537da87eea2f477dc.json | cmd/info: Add support for casks | Library/Homebrew/cmd/info.rb | @@ -64,63 +64,81 @@ def info_args
def info
args = info_args.parse
- if args.days.present? && !VALID_DAYS.include?(args.days)
- raise UsageError, "--days must be one of #{VALID_DAYS.join(", ")}"
- end
-
- if args.category.present?
- if args.named.present? && !VALID_FORMULA_CATEGORIES.include... | true |
Other | Homebrew | brew | 117ae2c068e5795b08c15027ed89e7d1ddd004eb.json | Remove redundant check for `sorbet-runtime`. | Library/Homebrew/utils/sorbet.rb | @@ -6,12 +6,5 @@
Homebrew.install_bundler_gems!
require "sorbet-runtime"
else
- begin
- gem "sorbet-runtime"
- raise "Loaded `sorbet-runtime` instead of `sorbet-runtime-stub`."
- rescue Gem::LoadError
- nil
- end
-
require "sorbet-runtime-stub"
end | false |
Other | Homebrew | brew | d36df370994d1935c185e7b6b56a1836cbc70cd1.json | Replace custom stubs with `sorbet-runtime-stub`. | Library/Homebrew/cask/url.rb | @@ -1,8 +1,6 @@
# typed: strict
# frozen_string_literal: true
-require "utils/sorbet"
-
# Class corresponding to the `url` stanza.
#
# @api private | true |
Other | Homebrew | brew | d36df370994d1935c185e7b6b56a1836cbc70cd1.json | Replace custom stubs with `sorbet-runtime-stub`. | Library/Homebrew/dev-cmd/tests.rb | @@ -58,6 +58,7 @@ def tests
ENV["HOMEBREW_NO_COMPAT"] = "1" if args.no_compat?
ENV["HOMEBREW_TEST_GENERIC_OS"] = "1" if args.generic?
ENV["HOMEBREW_TEST_ONLINE"] = "1" if args.online?
+ ENV["HOMEBREW_SORBET_RUNTIME"] = "1"
ENV["USER"] ||= system_command!("id", args: ["-nu"]).stdout.ch... | true |
Other | Homebrew | brew | d36df370994d1935c185e7b6b56a1836cbc70cd1.json | Replace custom stubs with `sorbet-runtime-stub`. | Library/Homebrew/env_config.rb | @@ -251,6 +251,10 @@ module EnvConfig
"of macOS. This is useful in development on new macOS versions.",
boolean: true,
},
+ HOMEBREW_SORBET_RUNTIME: {
+ description: "Enable runtime typechecking using Sorbet.",
+ boolean: true,
+ },
... | true |
Other | Homebrew | brew | d36df370994d1935c185e7b6b56a1836cbc70cd1.json | Replace custom stubs with `sorbet-runtime-stub`. | Library/Homebrew/global.rb | @@ -31,6 +31,8 @@
inflect.irregular "it", "they"
end
+require "utils/sorbet"
+
HOMEBREW_BOTTLE_DEFAULT_DOMAIN = ENV["HOMEBREW_BOTTLE_DEFAULT_DOMAIN"]
HOMEBREW_BREW_DEFAULT_GIT_REMOTE = ENV["HOMEBREW_BREW_DEFAULT_GIT_REMOTE"]
HOMEBREW_CORE_DEFAULT_GIT_REMOTE = ENV["HOMEBREW_CORE_DEFAULT_GIT_REMOTE"] | true |
Other | Homebrew | brew | d36df370994d1935c185e7b6b56a1836cbc70cd1.json | Replace custom stubs with `sorbet-runtime-stub`. | Library/Homebrew/utils.rb | @@ -12,7 +12,6 @@
require "utils/livecheck_formula"
require "utils/popen"
require "utils/repology"
-require "utils/sorbet"
require "utils/svn"
require "utils/tty"
require "tap_constants" | true |
Other | Homebrew | brew | d36df370994d1935c185e7b6b56a1836cbc70cd1.json | Replace custom stubs with `sorbet-runtime-stub`. | Library/Homebrew/utils/sorbet.rb | @@ -1,8 +1,17 @@
# typed: strict
# frozen_string_literal: true
-if ENV["HOMEBREW_TESTS_COVERAGE"]
+if ENV["HOMEBREW_SORBET_RUNTIME"]
+ require "utils/gems"
+ Homebrew.install_bundler_gems!
require "sorbet-runtime"
else
- require "utils/sorbet/stubs"
+ begin
+ gem "sorbet-runtime"
+ raise "Loaded `sorb... | true |
Other | Homebrew | brew | d36df370994d1935c185e7b6b56a1836cbc70cd1.json | Replace custom stubs with `sorbet-runtime-stub`. | Library/Homebrew/utils/sorbet/stubs.rb | @@ -1,85 +0,0 @@
-# typed: false
-# frozen_string_literal: true
-
-# Stubs for `sorbet-runtime`, all taken from `sorbet/t` except for `T::Sig.sig`.
-#
-# @private
-module T
- # rubocop:disable Style/Documentation
- module Sig
- module WithoutRuntime
- def self.sig(arg = nil, &blk); end
- end
-
- module_... | true |
Other | Homebrew | brew | d36df370994d1935c185e7b6b56a1836cbc70cd1.json | Replace custom stubs with `sorbet-runtime-stub`. | docs/Manpage.md | @@ -1770,6 +1770,9 @@ For example, you might add something like the following to your ~/.profile, ~/.b
* `HOMEBREW_SKIP_OR_LATER_BOTTLES`:
If set with `HOMEBREW_DEVELOPER`, do not use bottles from older versions of macOS. This is useful in development on new macOS versions.
+ * `HOMEBREW_SORBET_RUNTIME`:
+ ... | true |
Other | Homebrew | brew | d36df370994d1935c185e7b6b56a1836cbc70cd1.json | Replace custom stubs with `sorbet-runtime-stub`. | manpages/brew.1 | @@ -2446,6 +2446,10 @@ If set, use Pry for the \fBbrew irb\fR command\.
If set with \fBHOMEBREW_DEVELOPER\fR, do not use bottles from older versions of macOS\. This is useful in development on new macOS versions\.
.
.TP
+\fBHOMEBREW_SORBET_RUNTIME\fR
+Enable runtime typechecking using Sorbet\.
+.
+.TP
\fBHOMEBREW_S... | true |
Other | Homebrew | brew | c74d54411b23319f815ea68c74fd5c2351cbb563.json | Add `tc` alias for `typecheck`. | Library/Homebrew/commands.rb | @@ -27,6 +27,7 @@ module Commands
"environment" => "--env",
"--config" => "config",
"-v" => "--version",
+ "tc" => "typecheck",
}.freeze
def valid_internal_cmd?(cmd) | true |
Other | Homebrew | brew | c74d54411b23319f815ea68c74fd5c2351cbb563.json | Add `tc` alias for `typecheck`. | completions/internal_commands_list.txt | @@ -81,6 +81,7 @@ switch
tap
tap-info
tap-new
+tc
test
tests
typecheck | true |
Other | Homebrew | brew | bbea2d840d48def854a77d9a392343acbbeff525.json | Run `brew typecheck` without `--quiet` on CI. | .github/workflows/tests.yml | @@ -120,8 +120,7 @@ jobs:
- name: Run brew audit --skip-style on all taps
run: brew audit --skip-style
- # TODO: remove --quiet when possible.
- - run: brew typecheck --quiet
+ - run: brew typecheck
- name: Run vale for docs linting
run: | | false |
Other | Homebrew | brew | ec5eb56a72864dbf4322b9996bcf6b90304d0d62.json | Add stubs for `sorbet-runtime`. | Library/Homebrew/utils.rb | @@ -12,6 +12,7 @@
require "utils/livecheck_formula"
require "utils/popen"
require "utils/repology"
+require "utils/sorbet"
require "utils/svn"
require "utils/tty"
require "tap_constants" | true |
Other | Homebrew | brew | ec5eb56a72864dbf4322b9996bcf6b90304d0d62.json | Add stubs for `sorbet-runtime`. | Library/Homebrew/utils/sorbet.rb | @@ -0,0 +1,8 @@
+# typed: strict
+# frozen_string_literal: true
+
+if ENV["HOMEBREW_TESTS_COVERAGE"]
+ require "sorbet-runtime"
+else
+ require "utils/sorbet/stubs"
+end | true |
Other | Homebrew | brew | ec5eb56a72864dbf4322b9996bcf6b90304d0d62.json | Add stubs for `sorbet-runtime`. | Library/Homebrew/utils/sorbet/stubs.rb | @@ -0,0 +1,85 @@
+# typed: false
+# frozen_string_literal: true
+
+# Stubs for `sorbet-runtime`, all taken from `sorbet/t` except for `T::Sig.sig`.
+#
+# @private
+module T
+ # rubocop:disable Style/Documentation
+ module Sig
+ module WithoutRuntime
+ def self.sig(arg = nil, &blk); end
+ end
+
+ module_... | true |
Other | Homebrew | brew | b4e8bfe716c787edededeaa3475a78bfdb15ddd6.json | Fix RuboCop offenses. | Library/Homebrew/cask/artifact/abstract_artifact.rb | @@ -45,7 +45,7 @@ def staged_path_join_executable(path)
def <=>(other)
return unless other.class < AbstractArtifact
- return 0 if self.class == other.class
+ return 0 if instance_of?(other.class)
@@sort_order ||= [ # rubocop:disable Style/ClassVars
PreflightBlock, | true |
Other | Homebrew | brew | b4e8bfe716c787edededeaa3475a78bfdb15ddd6.json | Fix RuboCop offenses. | Library/Homebrew/config.rb | @@ -54,8 +54,7 @@ def get_env_or_raise(env)
HOMEBREW_LOGS = Pathname.new(get_env_or_raise("HOMEBREW_LOGS")).expand_path.freeze
# Must use `/tmp` instead of `TMPDIR` because long paths break Unix domain sockets
-HOMEBREW_TEMP = begin
- tmp = Pathname.new(get_env_or_raise("HOMEBREW_TEMP"))
+HOMEBREW_TEMP = Pathname.... | true |
Other | Homebrew | brew | b4e8bfe716c787edededeaa3475a78bfdb15ddd6.json | Fix RuboCop offenses. | Library/Homebrew/formulary.rb | @@ -218,8 +218,7 @@ def initialize(url)
end
def load_file(flags:)
- if url =~ %r{githubusercontent.com/[\w-]+/[\w-]+/[a-f0-9]{40}(/Formula)?/([\w+-.@]+).rb}
- formula_name = Regexp.last_match(2)
+ if %r{githubusercontent.com/[\w-]+/[\w-]+/[a-f0-9]{40}(?:/Formula)?/(?<formula_name>[\w+-.@]+)... | true |
Other | Homebrew | brew | b4e8bfe716c787edededeaa3475a78bfdb15ddd6.json | Fix RuboCop offenses. | Library/Homebrew/rubocops/extend/formula.rb | @@ -395,7 +395,7 @@ def parameters_passed?(method_node, *params)
@offense_source_range = method_node.source_range
params.all? do |given_param|
method_params.any? do |method_param|
- if given_param.class == Regexp
+ if given_param.instance_of?(Regexp)
reg... | true |
Other | Homebrew | brew | b4e8bfe716c787edededeaa3475a78bfdb15ddd6.json | Fix RuboCop offenses. | Library/Homebrew/rubocops/uses_from_macos.rb | @@ -79,9 +79,9 @@ class UsesFromMacos < FormulaCop
def audit_formula(_node, _class_node, _parent_class_node, body_node)
find_method_with_args(body_node, :uses_from_macos, /^"(.+)"/).each do |method|
- dep = if parameters(method).first.class == RuboCop::AST::StrNode
+ dep = if... | true |
Other | Homebrew | brew | 2bdf3deb6fba75c74e97d84eb9f001f076f4bddb.json | Reduce shallow clone usage
GitHub has requested we request our usage of shallow clones. As a
result:
- do default to shallow clones on CI
- do not do --shallow-since when setting up new repositories in
`brew update`
- do not support shallow clones of homebrew-core at all
We may consider in future unshallowing all ... | Library/Homebrew/cmd/tap.rb | @@ -26,7 +26,7 @@ def tap_args
EOS
switch "--full",
description: "Convert a shallow clone to a full clone without untapping. Taps are only cloned as "\
- "shallow clones on continuous integration, or if `--shallow` was originally passed."
+ "... | true |
Other | Homebrew | brew | 2bdf3deb6fba75c74e97d84eb9f001f076f4bddb.json | Reduce shallow clone usage
GitHub has requested we request our usage of shallow clones. As a
result:
- do default to shallow clones on CI
- do not do --shallow-since when setting up new repositories in
`brew update`
- do not support shallow clones of homebrew-core at all
We may consider in future unshallowing all ... | Library/Homebrew/cmd/update.sh | @@ -37,8 +37,7 @@ git_init_if_necessary() {
fi
git config remote.origin.url "$HOMEBREW_BREW_GIT_REMOTE"
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- latest_tag="$(git ls-remote --tags --refs -q origin | tail -n1 | cut -f2)"
- git fetch --force origin --shallow-since="$late... | true |
Other | Homebrew | brew | 2bdf3deb6fba75c74e97d84eb9f001f076f4bddb.json | Reduce shallow clone usage
GitHub has requested we request our usage of shallow clones. As a
result:
- do default to shallow clones on CI
- do not do --shallow-since when setting up new repositories in
`brew update`
- do not support shallow clones of homebrew-core at all
We may consider in future unshallowing all ... | Library/Homebrew/tap.rb | @@ -620,7 +620,10 @@ def self.ensure_installed!
safe_system HOMEBREW_BREW_FILE, "tap", instance.name
end
+ # CoreTap never allows shallow clones (on request from GitHub).
def install(full_clone: true, quiet: false, clone_target: nil, force_auto_update: nil)
+ raise "Shallow clones are not supported for... | true |
Other | Homebrew | brew | 2bdf3deb6fba75c74e97d84eb9f001f076f4bddb.json | Reduce shallow clone usage
GitHub has requested we request our usage of shallow clones. As a
result:
- do default to shallow clones on CI
- do not do --shallow-since when setting up new repositories in
`brew update`
- do not support shallow clones of homebrew-core at all
We may consider in future unshallowing all ... | docs/Manpage.md | @@ -556,7 +556,7 @@ assumptions, so taps can be cloned from places other than GitHub and
using protocols other than HTTPS, e.g. SSH, git, HTTP, FTP(S), rsync.
* `--full`:
- Convert a shallow clone to a full clone without untapping. Taps are only cloned as shallow clones on continuous integration, or if `--shallow`... | true |
Other | Homebrew | brew | 2bdf3deb6fba75c74e97d84eb9f001f076f4bddb.json | Reduce shallow clone usage
GitHub has requested we request our usage of shallow clones. As a
result:
- do default to shallow clones on CI
- do not do --shallow-since when setting up new repositories in
`brew update`
- do not support shallow clones of homebrew-core at all
We may consider in future unshallowing all ... | manpages/brew.1 | @@ -786,7 +786,7 @@ With \fIURL\fR specified, tap a formula repository from anywhere, using any tran
.
.TP
\fB\-\-full\fR
-Convert a shallow clone to a full clone without untapping\. Taps are only cloned as shallow clones on continuous integration, or if \fB\-\-shallow\fR was originally passed\.
+Convert a shallow c... | true |
Other | Homebrew | brew | 24260e7d82f446976ff63de03cf262eb0df6258b.json | cask/cmd/info: Fix crash when using --github with a formula | Library/Homebrew/cask/cmd/info.rb | @@ -43,15 +43,15 @@ def github_remote_path(remote, path)
def run
if args.json == "v1"
- puts JSON.generate(casks.map(&:to_h))
+ puts JSON.generate(args.named.to_casks.map(&:to_h))
elsif args.github?
raise CaskUnspecifiedError if args.no_named?
- args.na... | false |
Other | Homebrew | brew | 727d8546217eadf22924ece4100b1bf40c9169c8.json | Add missing variable. | Library/Homebrew/cli/named_args.rb | @@ -60,7 +60,7 @@ def load_formula_or_cask(name, only: nil, method: nil)
if only != :formula
begin
return Cask::CaskLoader.load(name, config: Cask::Config.from_args(@parent))
- rescue Cask::CaskUnavailableError
+ rescue Cask::CaskUnavailableError => e
rais... | false |
Other | Homebrew | brew | 7f14e55f997b70d5ff829b510928f040e59aed05.json | Add missing cask options to `brew upgrade`. | Library/Homebrew/cask/cmd/upgrade.rb | @@ -13,16 +13,25 @@ def self.description
"Upgrades all outdated casks or the specified casks."
end
+ OPTIONS = [
+ [:switch, "--skip-cask-deps", {
+ description: "Skip installing cask dependencies.",
+ }],
+ [:switch, "--greedy", {
+ description: "Also inclu... | true |
Other | Homebrew | brew | 7f14e55f997b70d5ff829b510928f040e59aed05.json | Add missing cask options to `brew upgrade`. | Library/Homebrew/cmd/upgrade.rb | @@ -12,6 +12,51 @@ module Homebrew
module_function
def upgrade_args
+ cask_only_options = [
+ [:switch, "--cask", "--casks", {
+ description: "Treat all named arguments as casks. If no named arguments " \
+ "are specified, upgrade only outdated casks.",
+ }],
+ *Cask... | true |
Other | Homebrew | brew | 7f14e55f997b70d5ff829b510928f040e59aed05.json | Add missing cask options to `brew upgrade`. | docs/Manpage.md | @@ -534,6 +534,12 @@ reinstalled formulae or, every 30 days, for all formulae.
* `-d`, `--debug`:
If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory.
+* `-f`, `--force`:
+ Install without checking for previously installed keg-only or non-mig... | true |
Other | Homebrew | brew | 7f14e55f997b70d5ff829b510928f040e59aed05.json | Add missing cask options to `brew upgrade`. | manpages/brew.1 | @@ -790,6 +790,18 @@ Unless \fBHOMEBREW_NO_INSTALL_CLEANUP\fR is set, \fBbrew cleanup\fR will then be
If brewing fails, open an interactive debugging session with access to IRB or a shell inside the temporary build directory\.
.
.TP
+\fB\-f\fR, \fB\-\-force\fR
+Install without checking for previously installed keg\-... | true |
Other | Homebrew | brew | e40eece17bdf83b6d93fc8fff36f94938db22cd3.json | Add cask options to `brew reinstall`. | Library/Homebrew/cli/named_args.rb | @@ -23,21 +23,33 @@ def initialize(*args, parent: Args.new, override_spec: nil, force_bottle: false,
super(@args)
end
+ def to_casks
+ @to_casks ||= to_formulae_and_casks(only: :cask).freeze
+ end
+
def to_formulae
@to_formulae ||= to_formulae_and_casks(only: :formula)... | true |
Other | Homebrew | brew | e40eece17bdf83b6d93fc8fff36f94938db22cd3.json | Add cask options to `brew reinstall`. | Library/Homebrew/cmd/reinstall.rb | @@ -16,6 +16,39 @@ module Homebrew
module_function
def reinstall_args
+ cask_only_options = [
+ [:switch, "--cask", "--casks", {
+ description: "Treat all named arguments as casks.",
+ }],
+ *Cask::Cmd::OPTIONS,
+ *Cask::Cmd::AbstractCommand::OPTIONS,
+ ]
+
+ formula_only_opt... | true |
Other | Homebrew | brew | 16d5596fbdbebccfd18fe94fa8c8c72f6823cf46.json | Fix code style. | Library/Homebrew/cmd/install.rb | @@ -74,15 +74,18 @@ def install_args
[:switch, "--HEAD", {
description: "If <formula> defines it, install the HEAD version, aka. master, trunk, unstable.",
- }], [:switch, "--fetch-HEAD", {
+ }],
+ [:switch, "--fetch-HEAD", {
description: "Fetch the upstream repository to detec... | false |
Other | Homebrew | brew | 4016e746cd558a131a996dc9091e44bcc2ce8548.json | Fix _brew_upgrade completion function
I found an error that was breaking my `brew upgrade ...` zsh completion | completions/zsh/_brew | @@ -818,7 +818,7 @@ _brew_update_test() {
# install-options is copied from brew install
_brew_upgrade() {
_arguments \
- '--cask[upgrade installed Casks with newer versions]'
+ '--cask[upgrade installed Casks with newer versions]' \
'--cleanup[remove previously installed formula version(s)]' \
'--fetch-HEA... | false |
Other | Homebrew | brew | 43648100b4164944783cdc21c4dca74d8c4c2263.json | virtualenv: use version 20 to support Python 3.9 | Library/Homebrew/language/python.rb | @@ -116,9 +116,28 @@ module Virtualenv
def self.included(base)
base.class_eval do
resource "homebrew-virtualenv" do
- url "https://files.pythonhosted.org/packages/11/74" \
- "/2c151a13ef41ab9fb43b3c4ff9e788e0496ed7923b2078d42cab30622bdf/virtualenv-16.7.4.tar.gz"
- ... | false |
Other | Homebrew | brew | a8629dcda0e7043fc5b27ae9a64145788dfd3e8f.json | sorbet: Update RBI files and prune files.yaml.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml). | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -8150,6 +8150,8 @@ module Homebrew::EnvConfig
def self.no_install_cleanup?(); end
+ def self.no_installed_dependents_check?(); end
+
def self.no_proxy(); end
def self.pry?(); end
@@ -19413,6 +19415,10 @@ class RuboCop::Cop::FormulaAudit::GitUrls
def url_has_revision?(param0=T.unsafe(nil)); end
en... | false |
Other | Homebrew | brew | ea57ef794e90ed2e94cb4aba6d136e155264429c.json | audit: remove python 3.9 from unstable allowlist | Library/Homebrew/dev-cmd/audit.rb | @@ -718,7 +718,6 @@ def get_repo_data(regex)
# used for formulae that are unstable but need CI run without being in homebrew/core
UNSTABLE_DEVEL_ALLOWLIST = {
- "python@3.9" => "3.9.0rc",
}.freeze
GNOME_DEVEL_ALLOWLIST = { | false |
Other | Homebrew | brew | 41fe6b5e7c83e7934fd08ec958b315247ae87dce.json | shared_audits: add home-assistant to GITHUB_PRERELEASE_ALLOWLIST | Library/Homebrew/utils/shared_audits.rb | @@ -32,6 +32,7 @@ def github_release_data(user, repo, tag)
"elm-format" => "0.8.3",
"freetube" => :all,
"gitless" => "0.8.8",
+ "home-assistant" => :all,
"infrakit" => "0.5",
"pock" => :all,
"riff" => "0.5.0", | false |
Other | Homebrew | brew | 14cba7f648f0ccd2235cbd815855abe6cb909c1a.json | tab: fix nil modification time | Library/Homebrew/tab.rb | @@ -324,7 +324,7 @@ def version_scheme
end
def source_modified_time
- Time.at(super)
+ Time.at(super || 0)
end
def to_json(options = nil) | false |
Other | Homebrew | brew | 5645f79b7a796e57a99ec78aa65825f20477321b.json | sorbet: Update RBI files and prune files.yaml.
Autogenerated by [a scheduled GitHub Action](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml). | Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi | @@ -19409,6 +19409,10 @@ class RuboCop::Cop::FormulaAudit::DeprecateDisableReason
def reason(param0); end
end
+class RuboCop::Cop::FormulaAudit::GitUrls
+ def url_has_revision?(param0=T.unsafe(nil)); end
+end
+
class RuboCop::Cop::FormulaAudit::Miscellaneous
def conditional_dependencies(param0); end
@@ -19... | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.