mirror of
https://github.com/Homebrew/brew.git
synced 2026-08-12 22:29:27 +04:00
Main's "Make tests use public APIs and enable their cops" commit added public `attr_*` accessors (and a `Homebrew/NoSendInTests` cop) so specs avoid `instance_variable_get`/`send`. Those accessors have no production caller, so `brew deadcode` flags them: mark each `# deadcode:keep` noting it exists for test ergonomics. Do the same for the restored `Trust.trusted_formula_file?`/ `trusted_cask_file?` wrappers (kept so `trust_spec` need not `send`). Also re-add the sandbox refactor `# deadcode:keep` markers (lost when taking main's reordered sandbox.rb), annotate the new `install_gzipped_executable` install-steps DSL method `@api internal`, and disable `NoSendInTests` in `deadcode_spec` (which unit-tests the command's private methods). Claude-Session: https://claude.ai/code/session_011BgWRBydtdkvt8ocqH4nj9