Skip to content

rubocops/text: Prefer lib/"string" over lib+"string" #20235

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 11, 2025

Conversation

issyl0
Copy link
Member

@issyl0 issyl0 commented Jul 10, 2025

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew style with your changes locally?
  • Have you successfully run brew typecheck with your changes locally?
  • Have you successfully run brew tests with your changes locally?

/cc @EricFromCanada as you spotted this one!

@issyl0 issyl0 force-pushed the slash-not-plus-in-paths branch from 795ca00 to 4601de0 Compare July 10, 2025 22:03
@issyl0 issyl0 marked this pull request as ready for review July 10, 2025 22:16
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this! Can it get a test before merge?

@issyl0 issyl0 force-pushed the slash-not-plus-in-paths branch from 4601de0 to 72c05f0 Compare July 11, 2025 12:28
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MikeMcQuaid
Copy link
Member

@issyl0 brew style is 😭 but good to self-merge without another review when 🟢

- I found a few occurrences of this pattern from
  https://github.com/orgs/Homebrew/projects/5?pane=issue&itemId=97021840,
  that is an automated style request for:
  `core: use / instead of + operator in e.g. (lib+"lv").install "lv.hlp"`.
- Upon adding tests I realised that there's also the `prefix + "bin"`
  case that's already handled differently, so let's combine the handling
  given it's the same `+` that's wrong.
@issyl0 issyl0 force-pushed the slash-not-plus-in-paths branch from 72c05f0 to d4d1b4a Compare July 11, 2025 12:42
@issyl0 issyl0 enabled auto-merge July 11, 2025 12:42
@issyl0 issyl0 added this pull request to the merge queue Jul 11, 2025
Merged via the queue into main with commit 7f333ab Jul 11, 2025
36 checks passed
@issyl0 issyl0 deleted the slash-not-plus-in-paths branch July 11, 2025 13:16
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