Skip to content

fix: remove redundant shells from generate_completions_from_executable template#1652

Merged
PurpleBooth merged 1 commit into
mainfrom
fix/redundant-completions-shells
Jun 29, 2026
Merged

fix: remove redundant shells from generate_completions_from_executable template#1652
PurpleBooth merged 1 commit into
mainfrom
fix/redundant-completions-shells

Conversation

@PurpleBooth

Copy link
Copy Markdown
Owner

Homebrew's FormulaAudit/RedundantGenerateCompletionsShells audit now flags the explicit shells: [:bash, :fish, :zsh] argument to generate_completions_from_executable as redundant, because those are already the defaults.

This removes the shells: parameter from the generate_completions_from_executable call in homebrew/formula.rb.j2 so that formulas generated from this template pass the audit cleanly.

Changes

  • homebrew/formula.rb.j2: simplified
    generate_completions_from_executable(bin/binary.to_s, "--completion", shells: [
      :bash,
      :fish,
      :zsh,
    ])
    to
    generate_completions_from_executable(bin/binary.to_s, "--completion")

The resulting completions behavior is unchanged, since bash, fish, and zsh are the default shells.

…e template

Homebrew's FormulaAudit/RedundantGenerateCompletionsShells audit now
flags the explicit shells: [:bash, :fish, :zsh] argument as redundant,
since those are the defaults. Remove the shells: parameter from the
generate_completions_from_executable call in the formula template so
generated formulas pass this audit cleanly.
@PurpleBooth PurpleBooth merged commit d160de2 into main Jun 29, 2026
25 checks passed
@PurpleBooth PurpleBooth deleted the fix/redundant-completions-shells branch June 29, 2026 15:39
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.

1 participant