Repository navigation
Type cask audit options instead of **options - #24542
Merged
Merged
Conversation
- `Cask::Audit#validate_url_for_https_availability` took `**options` as `T.untyped` and forwarded it to `curl_check_http_content`, so a mistyped keyword at any of its three callers only failed at runtime. - Accept only the four keywords the callers pass, with `user_agents:` required since every caller passes it. - Narrow `URL#user_agent` to non-nil: `URL#initialize` always stores `user_agent || :default`. - Pass `url.referer&.to_s`, since `referer` can be a `URI`. `SystemCommand` already stringified it, so `curl` gets the same arguments. - Cover the binary URL HTTPS audit with and without a referer.
Contributor
dduugg
enabled auto-merge
November 8, 2026 22:28
bevanjkay
approved these changes
Nov 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
validate_url_for_https_availabilitysobrew typecheckcatches a mistyped keyword at its three callers, whichoptions: T.untypedhid.Cask::URL#user_agentto non-nil, sinceURL#initializealways storesuser_agent || :default.referertocurl_check_http_contentas aString, asSystemCommandalready did when building thecurlarguments.brew benchmarkresults.brewcommands to reproduce the bug?brew lgtm(style, typechecking and tests) locally?Claude Code with Opus 5.5, with local review and testing.