Skip to content

docs/Cask-Cookbook: align with homebrew-cask standards - #23842

Merged
MikeMcQuaid merged 1 commit into
mainfrom
cask_review_homebrew
Sep 6, 2026
Merged

docs/Cask-Cookbook: align with homebrew-cask standards#23842
MikeMcQuaid merged 1 commit into
mainfrom
cask_review_homebrew

Conversation

@bevanjkay

@bevanjkay bevanjkay commented Sep 6, 2026

Copy link
Copy Markdown
Member

This PR updates the Cask Cookbook documentation to meet the current expectations and prevailing standards in the homebrew-cask repository.


  • Have you followed our Contributing guidelines?
  • Have you checked for other open Pull Requests for the same change?
  • Have you explained what your changes do? Performance claims (e.g. "this is faster") must include brew benchmark results.
  • Have you explained why you'd like these changes included, not just what they do?
  • For bug fixes, have you given step-by-step brew commands to reproduce the bug?
  • Have you written new tests (excluding integration tests)? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) locally?

  • I did not use AI/LLM to create this PR, or I disclosed the tool/model below and reviewed its output; I did not attribute commits to AI and will answer maintainer questions and review comments myself without AI/LLM.

I used claude-code with Opus 5 to audit where the documentation had become stale against the standards, verified and modified the changes myself.

Copilot AI balanced review requested due to automatic review settings September 6, 2026 10:16
@bevanjkay
bevanjkay force-pushed the cask_review_homebrew branch from 2ed9c2e to 663241c Compare September 6, 2026 10:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃煛 Changes recommended

Correct the overstated audit guidance and resolve the identified semantic-line-break issues.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the Cask Cookbook to reflect current Homebrew Cask standards and behavior.

Changes:

  • Clarifies Cask authoring, uninstall, dependency, and checksum guidance.
  • Removes obsolete OSDN documentation.
  • Updates SourceForge references and Vale exceptions.
File summaries
File Description
Library/Homebrew/cask/audit.rb Updates the SourceForge documentation link.
docs/vale-styles/Homebrew/Headings.yml Removes the obsolete OSDN exception.
docs/Cask-Cookbook.md Modernizes Cask authoring guidance and examples.
Review details

Suppressed comments (2)

docs/Cask-Cookbook.md:450

  • This changed paragraph puts two sentences on one source line, contrary to the semantic-line-break rule in docs/AGENTS.md:20. Split them into separate lines.
An array of symbols is accepted when a cask must run on one of an exact set of macOS releases. The array must list two or more releases; a single-element array means the same thing as the bare symbol, i.e. a minimum:

docs/Cask-Cookbook.md:1379

  • The example introduction is a second sentence on the same source line. docs/AGENTS.md:20 requires semantic line breaks, so move it to its own line.
A cask that varies by both takes a `sha256` for each supported combination. Example (from [1password-cli.rb](https://github.com/Homebrew/homebrew-cask/blob/e04021c857906ba15366b622c8b35957b9aef13c/Casks/1/1password-cli.rb#L1-L11)):
  • Files reviewed: 3/3 changed files
  • Comments generated: 4
  • Review effort level: Balanced

馃挕 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread docs/Cask-Cookbook.md Outdated
Comment thread docs/Cask-Cookbook.md Outdated
Comment thread docs/Cask-Cookbook.md Outdated
Comment thread docs/Cask-Cookbook.md Outdated

@MikeMcQuaid MikeMcQuaid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Good to address Copilot rules but otherwise great.

Comment thread docs/Cask-Cookbook.md Outdated
- `depends_on macos:`: drop the `">= :big_sur"` and `"== :big_sur"`
  forms, deprecated by `MacOSRequirement.parse` and unused in
  homebrew/cask. An exact set needs two or more symbols, as a
  one-element array is parsed as a minimum.
- Stanza parameters: drop the claim that they are alphabetical, which
  is untrue of `uninstall`, `zap` and `sha256`.
- `uninstall`: reword the note on directive order.
- OSDN: `audit_download_url_is_osdn` rejects any `osdn.jp` host, so
  drop the OSDN URL format and narrow the section, the audit error
  linked to it and the headings vale style to SourceForge.
- Replace the `appium-desktop` cask, since removed, with `unison-app`
  as the example of the `-app` suffix rule.
- Document `launchctl:` wildcards and the `os` stanza, the latter
  alongside `arch`, which it mirrors.
- Document that the minimum macOS release comes from the artifact and
  Sparkle feed rather than vendor documentation, per `audit_min_os`.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

馃煝 Approval recommended

The documentation updates are consistent with current standards, with no unresolved issues.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

@MikeMcQuaid
MikeMcQuaid added this pull request to the merge queue Sep 6, 2026
Merged via the queue into main with commit a6fad58 Sep 6, 2026
54 of 55 checks passed
@MikeMcQuaid
MikeMcQuaid deleted the cask_review_homebrew branch September 6, 2026 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants