Skip to content

Check extensionless scripts in style commands - #24063

Merged
MikeMcQuaid merged 1 commit into
mainfrom
style-extensionless-scripts
Sep 22, 2026
Merged

MikeMcQuaid merged 1 commit into
mainfrom
style-extensionless-scripts

Conversation

@MikeMcQuaid

Copy link
Copy Markdown
Member
  • Use the shell script list for explicit paths and --changed so brew lgtm cannot silently skip package installer scripts.
  • Cover package scripts, Bash completions and Dockerfile, including propagation of ShellCheck and shfmt failures.

  • 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.

OpenAI Codex 6 Astra with local review and testing.


Copilot AI lite review requested due to automatic review settings September 21, 2026 20:59

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.

Copilot review overview

🔵 Needs a closer look

Two moderate issues remain in shell-script filtering and repeated script discovery.

Review effort: Lite
Findings: None

What changed in this PR

Updates style checks to lint extensionless shell scripts for explicit paths and --changed checks.

Changes:

  • Recognises package scripts, Bash completions, and Dockerfile.
  • Routes detected scripts through ShellCheck and shfmt.
  • Adds regression coverage for detection and failure propagation.
File Summary
Library/​Homebrew/​test/​style_spec.rb Tests extensionless script detection and linter failures.
Library/​Homebrew/​test/​dev-cmd/​style_spec.rb Tests changed-file detection.
Library/​Homebrew/​style.rb Classifies known shell scripts for linting; needs an empty-filter guard.
Library/​Homebrew/​dev-cmd/​style.rb Detects extensionless scripts with --changed; needs lazy caching of discovered scripts.

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

- Use the shell script list for explicit paths and `--changed` so
  `brew lgtm` cannot silently skip package installer scripts.
- Cover package scripts, Bash completions and `Dockerfile`, including
  propagation of ShellCheck and shfmt failures.
@MikeMcQuaid
MikeMcQuaid force-pushed the style-extensionless-scripts branch from e9f7a34 to 87226fc Compare September 21, 2026 21:11
@MikeMcQuaid
MikeMcQuaid added this pull request to the merge queue Sep 22, 2026
Merged via the queue into main with commit 69f8eaf Sep 22, 2026
52 checks passed
@MikeMcQuaid
MikeMcQuaid deleted the style-extensionless-scripts branch September 22, 2026 12:52
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

⌂ 换网址