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
75e2f1a2a9cd3d09aeae7a5fbbae81c1edc2045e.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/gems/simplecov@0.19.1.rbi
@@ -0,0 +1,8 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `simplecov` gem. +# Please instead update this file by running `tapioca sync`. + +# typed: true + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requires
true
Other
Homebrew
brew
1702b34f18f1244d913482d848fd64bb7a771009.json
update-test: improve debugging output. Output more information about the refs and commit message for the start, expected and actual end commits to ease debugging.
Library/Homebrew/dev-cmd/update-test.rb
@@ -114,11 +114,14 @@ def update_test safe_system "brew", "update", "--verbose" actual_end_commit = Utils.popen_read("git", "rev-parse", branch).chomp if actual_end_commit != end_commit + start_log = Utils.popen_read("git", "log", "-1", "--decorate", "--oneline", start_commit).chomp + ...
false
Other
Homebrew
brew
be4723fac8d2d6b317d5b1eaf2149de74299a3d5.json
Allow both python@3.8 and python@3.9
Library/Homebrew/dev-cmd/audit.rb
@@ -582,6 +582,7 @@ def audit_postgresql lua@5.1 numpy@1.16 openssl@1.1 + python@3.8 python@3.9 ].freeze
false
Other
Homebrew
brew
a176c3f75ba60ecca3701ceb219de6592dbe66d6.json
shared_audits: add nuclear to GITHUB_PRERELEASE_ALLOWLIST
Library/Homebrew/utils/shared_audits.rb
@@ -39,6 +39,7 @@ def github_release_data(user, repo, tag) "gitless" => "0.8.8", "home-assistant" => :all, "infrakit" => "0.5", + "nuclear" => :all, "pock" => :all, "riff" => "0.5.0", "telegram-cli" => "1.3.1",
false
Other
Homebrew
brew
35a7e336bef8b972495ef135571feceb46c3c57c.json
node: add support for npm 7 Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/language/node.rb
@@ -44,6 +44,9 @@ def self.std_npm_install_args(libexec) pack = pack_for_installation + # npm 7 requires that these dirs exist before install + (libexec/"lib").mkpath + # npm install args for global style module format installed into libexec args = %W[ -ddd
true
Other
Homebrew
brew
35a7e336bef8b972495ef135571feceb46c3c57c.json
node: add support for npm 7 Co-Authored-By: Mike McQuaid <mike@mikemcquaid.com>
Library/Homebrew/test/language/node_spec.rb
@@ -25,7 +25,7 @@ end describe "#std_npm_install_args" do - npm_install_arg = "libexec" + npm_install_arg = Pathname("libexec") npm_pack_cmd = "npm pack --ignore-scripts" it "raises error with non zero exitstatus" do
true
Other
Homebrew
brew
42d75c2787e3e68d81b23865a67111c48a670d9e.json
formula_installer: fix forbidden license check Convert forbidden licenses to a string before duplicating to have empty strings instead of `nil`.
Library/Homebrew/formula_installer.rb
@@ -1139,7 +1139,7 @@ def puts_requirement_messages end def forbidden_license_check - forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.dup + forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.to_s.dup SPDX::ALLOWED_LICENSE_SYMBOLS.each do |s| pattern = /#{s.to_s.tr("_", " "...
false
Other
Homebrew
brew
b06bcf3db154cfb27fc7ce240136719284e95b09.json
formula_installer: unfreeze forbidden licenses string
Library/Homebrew/formula_installer.rb
@@ -1139,10 +1139,10 @@ def puts_requirement_messages end def forbidden_license_check - forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.to_s + forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses.dup SPDX::ALLOWED_LICENSE_SYMBOLS.each do |s| pattern = /#{s.to_s.tr("_", " ")}...
false
Other
Homebrew
brew
24523f82250787e243fd2fc2ec9854ed43bd0d73.json
utils/spdx: allow other license symbols
Library/Homebrew/formula_installer.rb
@@ -1139,11 +1139,12 @@ def puts_requirement_messages end def forbidden_license_check - forbidden_licenses = Homebrew::EnvConfig.forbidden_licenses - .to_s - .sub("Public Domain", "public_domain") - ...
true
Other
Homebrew
brew
24523f82250787e243fd2fc2ec9854ed43bd0d73.json
utils/spdx: allow other license symbols
Library/Homebrew/test/utils/spdx_spec.rb
@@ -91,6 +91,10 @@ it "returns :public_domain" do expect(described_class.parse_license_expression(:public_domain).first).to eq [:public_domain] end + + it "returns :cannot_represent" do + expect(described_class.parse_license_expression(:cannot_represent).first).to eq [:cannot_represent] + en...
true
Other
Homebrew
brew
24523f82250787e243fd2fc2ec9854ed43bd0d73.json
utils/spdx: allow other license symbols
Library/Homebrew/utils/spdx.rb
@@ -15,6 +15,10 @@ module SPDX DATA_PATH = (HOMEBREW_DATA_PATH/"spdx").freeze API_URL = "https://api.github.com/repos/spdx/license-list-data/releases/latest" + ALLOWED_LICENSE_SYMBOLS = [ + :public_domain, + :cannot_represent, + ].freeze def license_data @license_data ||= JSON.parse (DATA_PATH...
true
Other
Homebrew
brew
1648011189a8b300b955fd7ec4b2e4eab40d7c0a.json
rubocops: permit openjdk@8 to bootstrap
Library/Homebrew/rubocops/urls.rb
@@ -44,6 +44,7 @@ class Urls < FormulaCop mlton openjdk openjdk@11 + openjdk@8 pypy sbcl rust
false
Other
Homebrew
brew
392f2e3a5c36cb5b551a8dc7dcef6ce513c89833.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/gems/rubocop-rspec@1.44.1.rbi
@@ -1,6 +1,6 @@ # DO NOT EDIT MANUALLY # This is an autogenerated file for types exported from the `rubocop-rspec` gem. -# Please instead update this file by running `tapioca sync --exclude json`. +# Please instead update this file by running `tapioca sync`. # typed: true @@ -74,15 +74,15 @@ end RuboCop::Cop::R...
true
Other
Homebrew
brew
392f2e3a5c36cb5b551a8dc7dcef6ce513c89833.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -22364,9 +22364,12 @@ class RuboCop::AST::NodePattern::Parser end module RuboCop::AST::NodePattern::Sets + SET_AND_RETURN_AND_RAISE_AND_THROW_ETC = ::T.let(nil, ::T.untyped) SET_BUILD_RECOMMENDED_TEST_OPTIONAL = ::T.let(nil, ::T.untyped) SET_DEPENDS_ON_USES_FROM_MACOS = ::T.let(nil, ::T.untyped) SET_IN...
true
Other
Homebrew
brew
e54980efd8d2a409b2267d318182134b9a37b396.json
docs/typechecking: Titlecase the word "With" - I don't necessarily agree with this, but it's AP style that words with four or more letters should start with a capital when in titles.
docs/Typechecking.md
@@ -1,4 +1,4 @@ -# Type Checking with Sorbet +# Type Checking With Sorbet The majority of the code in Homebrew is written in Ruby which is a dynamic language. To avail the benefits of static type checking, we have set up Sorbet in
false
Other
Homebrew
brew
c0642e1b84ed17a9ed9e3ef503ed13c7230c165b.json
vale-styles: Upgrade all checks to "error" level - I added these all the way back in December 2019 in #6826, but only today realised that things have been failing unnoticeably because "warning" level exits with status code 0, so doesn't fail CI. - Upgrading to "error" level will enable us to see the style errors i...
docs/vale-styles/Homebrew/Abbreviations.yml
@@ -2,7 +2,7 @@ extends: substitution message: Use '%s' ignorecase: false -link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#style-and-usage' +link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#style-and-usage" level: error nonword: true swap:
true
Other
Homebrew
brew
c0642e1b84ed17a9ed9e3ef503ed13c7230c165b.json
vale-styles: Upgrade all checks to "error" level - I added these all the way back in December 2019 in #6826, but only today realised that things have been failing unnoticeably because "warning" level exits with status code 0, so doesn't fail CI. - Upgrading to "error" level will enable us to see the style errors i...
docs/vale-styles/Homebrew/OxfordComma.yml
@@ -1,8 +1,8 @@ --- extends: existence -message: 'No Oxford commas!' -link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions' +message: "No Oxford commas!" +link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions" ...
true
Other
Homebrew
brew
c0642e1b84ed17a9ed9e3ef503ed13c7230c165b.json
vale-styles: Upgrade all checks to "error" level - I added these all the way back in December 2019 in #6826, but only today realised that things have been failing unnoticeably because "warning" level exits with status code 0, so doesn't fail CI. - Upgrading to "error" level will enable us to see the style errors i...
docs/vale-styles/Homebrew/Pronouns.yml
@@ -1,8 +1,8 @@ --- extends: existence message: Avoid gender-specific language when not necessary. -link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#personal-pronouns' -level: warning +link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#personal-pronouns" ...
true
Other
Homebrew
brew
c0642e1b84ed17a9ed9e3ef503ed13c7230c165b.json
vale-styles: Upgrade all checks to "error" level - I added these all the way back in December 2019 in #6826, but only today realised that things have been failing unnoticeably because "warning" level exits with status code 0, so doesn't fail CI. - Upgrading to "error" level will enable us to see the style errors i...
docs/vale-styles/Homebrew/Spacing.yml
@@ -1,9 +1,9 @@ --- extends: existence message: "'%s' should have one space." -link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions' +link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions" level: error nonwor...
true
Other
Homebrew
brew
c0642e1b84ed17a9ed9e3ef503ed13c7230c165b.json
vale-styles: Upgrade all checks to "error" level - I added these all the way back in December 2019 in #6826, but only today realised that things have been failing unnoticeably because "warning" level exits with status code 0, so doesn't fail CI. - Upgrading to "error" level will enable us to see the style errors i...
docs/vale-styles/Homebrew/Terms.yml
@@ -1,7 +1,7 @@ --- extends: substitution message: Use '%s' instead of '%s'. -link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#terminology-words-and-word-styling' +link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#terminology-words-and-word-styling" lev...
true
Other
Homebrew
brew
c0642e1b84ed17a9ed9e3ef503ed13c7230c165b.json
vale-styles: Upgrade all checks to "error" level - I added these all the way back in December 2019 in #6826, but only today realised that things have been failing unnoticeably because "warning" level exits with status code 0, so doesn't fail CI. - Upgrading to "error" level will enable us to see the style errors i...
docs/vale-styles/Homebrew/Titles.yml
@@ -1,6 +1,6 @@ extends: capitalization message: "'%s' should be in title case" -level: warning +level: error scope: heading.h1 match: $title style: AP
true
Other
Homebrew
brew
c0642e1b84ed17a9ed9e3ef503ed13c7230c165b.json
vale-styles: Upgrade all checks to "error" level - I added these all the way back in December 2019 in #6826, but only today realised that things have been failing unnoticeably because "warning" level exits with status code 0, so doesn't fail CI. - Upgrading to "error" level will enable us to see the style errors i...
docs/vale-styles/Homebrew/Trademarks.yml
@@ -1,7 +1,7 @@ --- extends: existence message: 'No "TM", ™, SM, ©, ®, or other explicit indicators of rights ownership or trademarks' -link: 'https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guidelines.md#typographical-conventions' +link: "https://github.com/Homebrew/brew/blob/HEAD/docs/Prose-Style-Guide...
true
Other
Homebrew
brew
4f7497ddf92b2c018a3e3dce4cc0cd25905fd3c0.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -13629,6 +13629,11 @@ class PATH def each(*args, &block); end end +class PATH + extend ::T::Private::Methods::MethodHooks + extend ::T::Private::Methods::SingletonMethodHooks +end + module ParallelTests RUBY_BINARY = ::T.let(nil, ::T.untyped) VERSION = ::T.let(nil, ::T.untyped) @@ -26204,6 +26209,23 @...
false
Other
Homebrew
brew
6e82f77108c326ede038d11a81fc6e9d9c229886.json
audit: allow python symlinks based on keg-only status
Library/Homebrew/formula_cellar_checks.rb
@@ -265,18 +265,16 @@ def check_plist(prefix, plist) EOS end - PYTHON_SYMLINK_ALLOWED_FORMULA = "python@3.8" - - def check_python_symlinks(name) + def check_python_symlinks(name, keg_only) + return unless keg_only return unless name.start_with? "python" - return if name == PYTHON_SYMLINK_ALLOWED...
false
Other
Homebrew
brew
a582b6e3719a300f4aa37814e41987ab5343ea8a.json
Add type signatures for `PATH`.
Library/Homebrew/PATH.rb
@@ -1,52 +1,71 @@ -# typed: false +# typed: true # frozen_string_literal: true # Represention of a `*PATH` environment variable. # # @api private class PATH + extend T::Sig + include Enumerable extend Forwardable def_delegator :@paths, :each + # FIXME: Enable cop again when https://github.com/sorb...
false
Other
Homebrew
brew
11918cef968c280c41df42263b62bd891834d4bb.json
bash completion: Add remaining brew outdated flags `--verbose`, `--formula`, and `--greedy`
completions/bash/brew
@@ -419,7 +419,7 @@ _brew_outdated() { local cur="${COMP_WORDS[COMP_CWORD]}" case "$cur" in -*) - __brewcomp "--quiet --cask --json=v1 --fetch-HEAD" + __brewcomp "--quiet --verbose --formula --cask --json=v1 --fetch-HEAD --greedy" return ;; esac
false
Other
Homebrew
brew
534f0e61e342b509fd7a95871e70a182de87ddde.json
shared_audits: fix conditional in Bitbucket notability check This check currently returns an error for repositories that are notable enough (and passes on repositories that are not notable enough).
Library/Homebrew/utils/shared_audits.rb
@@ -168,7 +168,7 @@ def bitbucket(user, repo) watcher_metadata = JSON.parse(watcher_out) return if watcher_metadata.nil? - return if (forks_metadata["size"] < 30) && (watcher_metadata["size"] < 75) + return if forks_metadata["size"] >= 30 || watcher_metadata["size"] >= 75 "Bitbucket repository ...
false
Other
Homebrew
brew
c26f1f436ec8a863c2aa7ed6448882e654d8b6fc.json
shared_audits: add extraterm to GITHUB_PRERELEASE_ALLOWLIST
Library/Homebrew/utils/shared_audits.rb
@@ -34,6 +34,7 @@ def github_release_data(user, repo, tag) GITHUB_PRERELEASE_ALLOWLIST = { "amd-power-gadget" => :all, "elm-format" => "0.8.3", + "extraterm" => :all, "freetube" => :all, "gitless" => "0.8.8", "home-assistant" => :all,
false
Other
Homebrew
brew
4e9773a650759b5d01c310a99fab00b138443eda.json
docs/typechecking: Remove mentions of sorbet/files.yaml - The `sorbet/files.yaml` file was removed in 4382ee9d1404baba4ff4a1734e11fbd9c7826cb7 in favour of more obvious individual type sigils in all files.
docs/Typechecking.md
@@ -27,8 +27,8 @@ file are always passed first (if it exists), followed by arguments provided on t command line. We use it ignore the `Library/Homebrew/vendor` directory, which contains gem definitions which we do not wish to type check. -- The `files.yaml` file. It contains a list of every Ruby file in the codebas...
false
Other
Homebrew
brew
f7154119914398ad12ccfbd7ba24c7cd50214f4e.json
Use GITHUB_ENV instead of set-env https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ > Action and workflow authors who are setting environment variables via stdout should update any usage of the set-env and add-path workflow commands to use the new environment files.
.github/workflows/docker.yml
@@ -34,7 +34,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') run: | brew_version=${GITHUB_REF:10} - echo "::set-env name=brew_version::$brew_version" + echo "brew_version=$brew_version" >> ${GITHUB_ENV} echo ${{secrets.HOMEBREW_GITHUB_PACKAGES_API_TOKEN}} | ...
false
Other
Homebrew
brew
64d135d0a7f242fda9ffd1a007614a6aa960c9d9.json
tap-new: add option for branch name
Library/Homebrew/dev-cmd/tap-new.rb
@@ -17,8 +17,12 @@ def tap_new_args switch "--no-git", description: "Don't initialize a git repository for the tap." - flag "--pull-label", + flag "--pull-label=", description: "Label name for pull requests ready to be pulled (default `pr-pull`)." + flag "--bran...
true
Other
Homebrew
brew
64d135d0a7f242fda9ffd1a007614a6aa960c9d9.json
tap-new: add option for branch name
docs/Manpage.md
@@ -1231,6 +1231,8 @@ Generate the template files for a new tap. Don't initialize a git repository for the tap. * `--pull-label`: Label name for pull requests ready to be pulled (default `pr-pull`). +* `--branch`: + Initialize git repository with the specified branch name (default `main`). ### `test` [*`opti...
true
Other
Homebrew
brew
64d135d0a7f242fda9ffd1a007614a6aa960c9d9.json
tap-new: add option for branch name
manpages/brew.1
@@ -1708,6 +1708,10 @@ Don\'t initialize a git repository for the tap\. \fB\-\-pull\-label\fR Label name for pull requests ready to be pulled (default \fBpr\-pull\fR)\. . +.TP +\fB\-\-branch\fR +Initialize git repository with the specified branch name (default \fBmain\fR)\. +. .SS "\fBtest\fR [\fIoptions\fR] \fIfor...
true
Other
Homebrew
brew
3497008e6ce3ff1d5cdc32ff797ba31c0786d919.json
Use GITHUB_ENV instead of set-env https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/ > Action and workflow authors who are setting environment variables via stdout should update any usage of the set-env and add-path workflow commands to use the new environment files.
.github/workflows/docker.yml
@@ -34,7 +34,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') run: | brew_version=${GITHUB_REF:10} - echo "::set-env name=brew_version::$brew_version" + echo "brew_version=$brew_version" >> ${GITHUB_ENV} echo ${{secrets.HOMEBREW_GITHUB_PACKAGES_API_TOKEN}} | ...
false
Other
Homebrew
brew
5e0998d2ce6827ed0aeaf57486148a297e99592a.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/hidden-definitions/hidden.rbi
@@ -13312,6 +13312,8 @@ class Object include ::ActiveSupport::Dependencies::Loadable include ::ActiveSupport::Tryable include ::Minitest::Expectations + include ::SystemCommand::Mixin + include ::Utils::Curl include ::ActiveSupport::ToJsonWithActiveSupportEncoder def acts_like?(duck); end @@ -24691,6...
true
Other
Homebrew
brew
5e0998d2ce6827ed0aeaf57486148a297e99592a.json
sorbet: Update RBI files. Autogenerated by the [sorbet](https://github.com/Homebrew/brew/blob/master/.github/workflows/sorbet.yml) workflow.
Library/Homebrew/sorbet/rbi/todo.rbi
@@ -5,7 +5,6 @@ module ::StackProf; end module DependencyCollector::Compat; end module OS::Mac::Version::NULL; end -module SPDX::JSON_PATH; end module T::InterfaceWrapper::Helpers; end module T::Private::Abstract::Hooks; end module T::Private::Methods::MethodHooks; end
true
Other
Homebrew
brew
d96ad81cd02e2cad1ba022e979e8fb83f0d431e7.json
cmd/info: Add test for --json=v2
Library/Homebrew/test/cmd/info_spec.rb
@@ -17,6 +17,15 @@ .and not_to_output.to_stderr .and be_a_success end + + it "prints as json with the --json=v2 flag" do + setup_test_formula "testball" + + expect { brew "info", "testball", "--json=v2" } + .to output(a_json_string).to_stdout + .and not_to_output.to_stderr + .and ...
false
Other
Homebrew
brew
622e76e7f375cfec6ae07f1db9efbf31e061a631.json
bintray: check remote file hash prior to upload If the remote file is published and has a hash matching the file we're about to upload, just skip uploading and publishing it entirely, rather than bailing out with an error.
Library/Homebrew/bintray.rb
@@ -131,69 +131,88 @@ def package_exists?(repo:, package:) end end - def file_published?(repo:, remote_file:) + # Gets the SHA-256 checksum of the specified remote file. + # Returns the empty string if the file exists but doesn't have a checksum. + # Returns nil if the file doesn't exist. + def remote_ch...
true
Other
Homebrew
brew
622e76e7f375cfec6ae07f1db9efbf31e061a631.json
bintray: check remote file hash prior to upload If the remote file is published and has a hash matching the file we're about to upload, just skip uploading and publishing it entirely, rather than bailing out with an error.
Library/Homebrew/test/bintray_spec.rb
@@ -10,15 +10,15 @@ ENV["HOMEBREW_BINTRAY_KEY"] = "deadbeef" end - describe "::file_published?" do + describe "::remote_checksum" do it "detects a published file" do - results = bintray.file_published?(repo: "bottles", remote_file: "hello-2.10.catalina.bottle.tar.gz") - expect(results).to be ...
true
Other
Homebrew
brew
6ea9b32f7023b4e70583bd9cc3eb37a783fbb86a.json
Fix version comparison in `SDK#latest_sdk`.
Library/Homebrew/os/mac/sdk.rb
@@ -33,7 +33,7 @@ def sdk_for(v) def latest_sdk return if sdk_paths.empty? - v, path = sdk_paths.max(&:first) + v, path = sdk_paths.max { |(v1, _), (v2, _)| v1 <=> v2 } SDK.new v, path, source end
false
Other
Homebrew
brew
3b944434cfba22338758f0705de4813d076b444f.json
style: allow python versions with two digits
Library/Homebrew/rubocops/lines.rb
@@ -335,7 +335,7 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node) find_strings(body_node).each do |str| string_content = string_content(str) - next unless match = string_content.match(/^python(@)?(\d\.\d)$/) + next unless match = string_content.matc...
true
Other
Homebrew
brew
3b944434cfba22338758f0705de4813d076b444f.json
style: allow python versions with two digits
Library/Homebrew/test/rubocops/lines_spec.rb
@@ -793,6 +793,30 @@ def install RUBY end + it "allow matching versions with two digits" do + expect_no_offenses(<<~RUBY) + class Foo < Formula + depends_on "python@3.10" + + def install + puts "python@3.10" + end + end + RUBY + end + + ...
true
Other
Homebrew
brew
d7dad10771b8730ac63056d71d8332890affd0af.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/gems/rubocop-sorbet@0.5.1.rbi
@@ -0,0 +1,237 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `rubocop-sorbet` gem. +# Please instead update this file by running `tapioca sync`. + +# typed: true + +module RuboCop +end + +module RuboCop::Cop +end + +module RuboCop::Cop::Sorbet +end + +class RuboCop::Cop::Sorbet...
true
Other
Homebrew
brew
d7dad10771b8730ac63056d71d8332890affd0af.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/gems/sorbet-runtime-stub@0.2.0.rbi
@@ -0,0 +1,8 @@ +# DO NOT EDIT MANUALLY +# This is an autogenerated file for types exported from the `sorbet-runtime-stub` gem. +# Please instead update this file by running `tapioca sync`. + +# typed: true + +# THIS IS AN EMPTY RBI FILE. +# see https://github.com/Shopify/tapioca/blob/master/README.md#manual-gem-requir...
true
Other
Homebrew
brew
d7dad10771b8730ac63056d71d8332890affd0af.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
@@ -8158,6 +8158,8 @@ module Homebrew::EnvConfig def self.skip_or_later_bottles?(); end + def self.sorbet_runtime?(); end + def self.sudo_askpass(); end def self.svn(); end @@ -10256,8 +10258,6 @@ module IRB def self.load_modules(); end - def self.parse_opts(argv: T.unsafe(nil)); end - def se...
true
Other
Homebrew
brew
73dc98d1c75bfd9b05bc3504d12356e420038b2b.json
Adjust RuboCop rules for Sorbet.
Library/.rubocop.yml
@@ -12,7 +12,12 @@ AllCops: DisplayCopNames: false # enable all pending rubocops NewCops: enable + Include: + - '**/*.rbi' Exclude: + - 'Homebrew/sorbet/rbi/gems/**/*.rbi' + - 'Homebrew/sorbet/rbi/hidden-definitions/**/*.rbi' + - 'Homebrew/sorbet/rbi/todo.rbi' - 'Homebrew/bin/*' - 'Ho...
true
Other
Homebrew
brew
73dc98d1c75bfd9b05bc3504d12356e420038b2b.json
Adjust RuboCop rules for Sorbet.
Library/Homebrew/.rubocop.yml
@@ -45,10 +45,6 @@ Naming/PredicateName: # Can't rename these. AllowedMethods: is_32_bit?, is_64_bit? -Style/FrozenStringLiteralComment: - Exclude: - - '**/Casks/**/*.rb' - Style/HashAsLastArrayItem: Exclude: - 'test/utils/spdx_spec.rb'
true
Other
Homebrew
brew
4c36cf2e8e072b56a66454ddabe7bb9986a2b83e.json
cmd/info: Add --json=v2 for outputing formula and cask json
Library/Homebrew/cli/named_args.rb
@@ -38,8 +38,16 @@ def to_formulae_and_casks(only: nil, method: nil) end end + def to_formulae_to_casks(method: nil, only: nil) + @to_formulae_to_casks ||= {} + @to_formulae_to_casks[[method, only]] = to_formulae_and_casks(method: method, only: only) + ...
true
Other
Homebrew
brew
4c36cf2e8e072b56a66454ddabe7bb9986a2b83e.json
cmd/info: Add --json=v2 for outputing formula and cask json
Library/Homebrew/cmd/info.rb
@@ -81,9 +81,6 @@ def info print_analytics(args: args) elsif args.json - raise UsageError, "invalid JSON version: #{args.json}" unless ["v1", true].include? args.json - raise FormulaUnspecifiedError if !(args.all? || args.installed?) && args.no_named? - print_json(args: args) elsif a...
true
Other
Homebrew
brew
d49100487944014a2c8a554e1eff257addddf460.json
Remove helper script.
Library/add-typed.rb
@@ -1,27 +0,0 @@ -#!/usr/bin/env ruby - -require 'pathname' -require 'open3' - - -Dir.chdir "#{__dir__}/Homebrew" - -files = Pathname.glob("**/*.rb").reject { |path| path.to_s.start_with?("vendor/") } - -files.each do |file| - - content = file.read - - if content.start_with?("# typed: ") - puts "Already typed: #{f...
false
Other
Homebrew
brew
059122c7246915559590ef09714086ebf7cd32d3.json
Inline type annotations for `User`.
Library/Homebrew/sorbet/rbi/utils/user.rbi
@@ -1,11 +0,0 @@ -# typed: strict - -class User < SimpleDelegator - include Kernel - - sig { returns(T::Boolean) } - def gui?; end - - sig { returns(T.nilable(T.attached_class)) } - def self.current; end -end
true
Other
Homebrew
brew
059122c7246915559590ef09714086ebf7cd32d3.json
Inline type annotations for `User`.
Library/Homebrew/utils/user.rb
@@ -10,7 +10,11 @@ # # @api private class User < SimpleDelegator + include Kernel + extend T::Sig + # Return whether the user has an active GUI session. + sig { returns(T::Boolean) } def gui? out, _, status = system_command "who" return false unless status.success? @@ -21,6 +25,7 @@ def gui? en...
true
Other
Homebrew
brew
fc7a34585f7a290b73e4a9861601060ee42afe3e.json
Inline type annotations for `Tty`.
Library/Homebrew/sorbet/rbi/utils/tty.rbi
@@ -1,36 +0,0 @@ -# typed: strict - -module Tty - include Kernel - - sig{ params(string: String).returns(String) } - def strip_ansi(string) - end - - sig{ returns(Integer) } - def width() - end - - sig{ params(string: String).returns(T.nilable(String)) } - def truncate(string) - end - - def append_to_escape_...
true
Other
Homebrew
brew
fc7a34585f7a290b73e4a9861601060ee42afe3e.json
Inline type annotations for `Tty`.
Library/Homebrew/utils/tty.rb
@@ -5,11 +5,15 @@ # # @api private module Tty + include Kernel + extend T::Sig + @stream = $stdout module_function - def with(stream) + sig { params(stream: IO, _block: T.proc.params(arg0: IO).void).void } + def with(stream, &_block) previous_stream = @stream @stream = stream @@ -18,10 +22...
true
Other
Homebrew
brew
12e173cd50a36e99b981d452d230c6225136f731.json
Inline type annotations for `SPDX`.
Library/Homebrew/sorbet/rbi/utils/spdx.rbi
@@ -1,11 +0,0 @@ -# typed: strict - -module SPDX - include Kernel - - def spdx_data; end - - def download_latest_license_data!(to: JSON_PATH); end - - def curl_download(*args, to: nil, partial: true, **options); end -end
true
Other
Homebrew
brew
12e173cd50a36e99b981d452d230c6225136f731.json
Inline type annotations for `SPDX`.
Library/Homebrew/utils/spdx.rb
@@ -8,6 +8,7 @@ # # @api private module SPDX + include Utils::Curl extend Utils::Curl module_function
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/PATH.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Represention of a `*PATH` environment variable.
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/bintray.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "utils/curl"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/brew.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true if ENV["HOMEBREW_STACKPROF"]
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/build.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # This script is loaded by formula_installer as a separate instance.
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/build_environment.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true # Settings for the build environment.
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/build_options.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true # Options for a formula build.
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cache_store.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "json"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/app"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/abstract_artifact.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true module Cask
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/abstract_flight_block.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/abstract_artifact"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/abstract_uninstall.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "timeout"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/app.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/artifact.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/audio_unit_plugin.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/binary.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/symlinked"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/colorpicker.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/dictionary.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/font.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/input_method.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/installer.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/abstract_artifact"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/internet_plugin.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/manpage.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/symlinked"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/mdimporter.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/moved.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/relocated"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/pkg.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "plist"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/postflight_block.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/abstract_flight_block"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/preflight_block.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/abstract_flight_block"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/prefpane.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/qlplugin.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/relocated.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/abstract_artifact"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/screen_saver.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/service.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/stage_only.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/abstract_artifact"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/suite.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/symlinked.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/relocated"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/uninstall.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/abstract_uninstall"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/vst3_plugin.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/vst_plugin.rb
@@ -1,3 +1,4 @@ +# typed: strict # frozen_string_literal: true require "cask/artifact/moved"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/artifact/zap.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/artifact/abstract_uninstall"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/audit.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/denylist"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/auditor.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true require "cask/audit"
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/cache.rb
@@ -1,3 +1,4 @@ +# typed: true # frozen_string_literal: true module Cask
true
Other
Homebrew
brew
24ae318a3d5f0519f5fe29d08e01e8a044d99d87.json
Move type annotations into files.
Library/Homebrew/cask/cask.rb
@@ -1,3 +1,4 @@ +# typed: false # frozen_string_literal: true require "cask/cask_loader"
true