Skip to content

dev-cmd/advisory-match: fix test style - #24076

Merged
krehel merged 1 commit into
mainfrom
dev-cmd-advisory-match-fix-test-style
Sep 23, 2026
Merged

krehel merged 1 commit into
mainfrom
dev-cmd-advisory-match-fix-test-style

Conversation

@samford

@samford samford commented Sep 23, 2026

Copy link
Copy Markdown
Member

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

The "holds differing platform histories" example in dev-cmd/advisory-match_spec.rb passes brew style but produces an error when the test is run by brew tests: "/opt/homebrew/Library/ Homebrew/test/dev-cmd/advisory-match_spec.rb:496: warning: mismatched indentations at 'end' with 'else' at 494". This resolves the issue by restructuring the related keyword arguments in a way that resolves this message, still passes brew style, and is more readable to people looking at this code (especially in an editor wrapping to 80 characters per line).

I noticed this when running brew tests to test unrelated changes, so I figured I would take a moment to address it.

The "holds differing platform histories" example in
dev-cmd/advisory-match_spec.rb passes `brew style` but produces an
error when the test is run by `brew tests`: "/opt/homebrew/Library/
Homebrew/test/dev-cmd/advisory-match_spec.rb:496: warning: mismatched
indentations at 'end' with 'else' at 494". This resolves the issue by
restructuring the related keyword arguments in a way that resolves
this message, still passes `brew style`, and is more readable to
people looking at this code (especially in an editor wrapping to 80
characters per line).
Copilot AI lite review requested due to automatic review settings September 23, 2026 15:41

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

馃煝 Approval recommended

The formatting-only change resolves the warning without altering behavior.

Review effort: Lite
Findings: None

What changed in this PR

This pull request fixes a mismatched-indentation warning in the advisory-match test while preserving behavior.

Changes:

  • Reformats ReconciledHistory keyword arguments.
  • Clarifies the platform-specific fixed value expression.
File Description
Library/鈥婬omebrew/鈥媡est/鈥媎ev-cmd/鈥媋dvisory-match_spec.rb Reformats the affected test setup.

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

@krehel
krehel added this pull request to the merge queue Sep 23, 2026
Merged via the queue into main with commit 9febc74 Sep 23, 2026
53 checks passed
@krehel
krehel deleted the dev-cmd-advisory-match-fix-test-style branch September 23, 2026 16:20
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