Files
Douglas Eichelberger c84b9a7b97 Add brew deadcode command backed by Spoom
Adds a `brew deadcode` dev-cmd that finds and removes dead code identified
by Spoom, excluding test code so that definitions referenced only by their
specs are also treated as dead. Definitions documented with `# @api public`
or `# @api internal`, or defined with an `override` signature, are always
kept, since Spoom cannot see their dynamic, subclass or cross-tap (e.g.
homebrew-core) callers.

Removes the dead code it identified, restoring false positives (dynamically
dispatched diagnostic checks and cask stanza classes, TestRunnerFormula
platform predicates, livecheck skip conditions, TopologicalHash tsort
methods and YARD docstring plugin methods). homebrew-core-used helpers such
as kernel_major_version, deny_network_access!, require_root and
detected_python_shebang are restored and annotated `# @api internal`.
Test-only cache resets are relocated into the specs that need them.
2026-07-29 22:00:27 -07:00
..
2024-05-01 11:35:21 +02:00

Manual Pages

This directory contains the generated Homebrew man pages from the brew generate-man-completions command. This command creates the output from the CLI::Parser definitions in files, sections extracted from the repository's README.md and brew.1.md.erb.