Skip to content

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

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

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

Triggered via pull request July 10, 2025 22:03
Status Failure
Total duration 16m 28s
Artifacts

tests.yml

on: pull_request
Matrix: analytics
Matrix: bundle-and-services
Matrix: test-bot
Matrix: tests
Matrix: update-test
Fit to window
Zoom out
Zoom in

Annotations

14 errors
tap syntax
Process completed with exit code 1.
tests (generic OS)
Process completed with exit code 1.
tests (generic OS): /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/rubocops/text_spec.rb#L234
RuboCop::Cop::FormulaAudit::Text when auditing formula text reports an offense if `prefix + "bin"` is present Failure/Error: expect_offense(<<~RUBY) class Foo < Formula def install ohai prefix + "bin" ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` end end RUBY Diff: @@ -1,6 +1,6 @@ class Foo < Formula def install ohai prefix + "bin" - ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` + ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `prefix/"bin"` instead of `prefix + "bin"` end end
tests (generic OS): /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/rubocops/text_spec.rb#L234
RuboCop::Cop::FormulaAudit::Text when auditing formula text reports an offense if `prefix + "bin"` is present Failure/Error: expect_offense(<<~RUBY) class Foo < Formula def install ohai prefix + "bin" ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` end end RUBY Diff: @@ -1,6 +1,6 @@ class Foo < Formula def install ohai prefix + "bin" - ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` + ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `prefix/"bin"` instead of `prefix + "bin"` end end
tests (Linux)
The operation was canceled.
tests (Linux): /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/rubocops/text_spec.rb#L234
RuboCop::Cop::FormulaAudit::Text when auditing formula text reports an offense if `prefix + "bin"` is present Failure/Error: expect_offense(<<~RUBY) class Foo < Formula def install ohai prefix + "bin" ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` end end RUBY Diff: @@ -1,6 +1,6 @@ class Foo < Formula def install ohai prefix + "bin" - ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` + ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `prefix/"bin"` instead of `prefix + "bin"` end end
tests (Linux): /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/rubocops/text_spec.rb#L234
RuboCop::Cop::FormulaAudit::Text when auditing formula text reports an offense if `prefix + "bin"` is present Failure/Error: expect_offense(<<~RUBY) class Foo < Formula def install ohai prefix + "bin" ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` end end RUBY Diff: @@ -1,6 +1,6 @@ class Foo < Formula def install ohai prefix + "bin" - ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` + ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `prefix/"bin"` instead of `prefix + "bin"` end end
tests (Linux)
The strategy configuration was canceled because "tests.tests__generic_OS__--gene" failed
tests (online)
The operation was canceled.
tests (online): /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/test/rubocops/text_spec.rb#L234
RuboCop::Cop::FormulaAudit::Text when auditing formula text reports an offense if `prefix + "bin"` is present Failure/Error: expect_offense(<<~RUBY) class Foo < Formula def install ohai prefix + "bin" ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` end end RUBY Diff: @@ -1,6 +1,6 @@ class Foo < Formula def install ohai prefix + "bin" - ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` + ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `prefix/"bin"` instead of `prefix + "bin"` end end
tests (online)
The strategy configuration was canceled because "tests.tests__generic_OS__--gene" failed
tests (macOS)
The operation was canceled.
tests (macOS): /opt/homebrew/Library/Homebrew/test/rubocops/text_spec.rb#L234
RuboCop::Cop::FormulaAudit::Text when auditing formula text reports an offense if `prefix + "bin"` is present Failure/Error: expect_offense(<<~RUBY) class Foo < Formula def install ohai prefix + "bin" ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` end end RUBY Diff: @@ -1,6 +1,6 @@ class Foo < Formula def install ohai prefix + "bin" - ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `bin` instead of `prefix + "bin"` + ^^^^^^^^^^^^^^ FormulaAudit/Text: Use `prefix/"bin"` instead of `prefix + "bin"` end end
tests (macOS)
The strategy configuration was canceled because "tests.tests__generic_OS__--gene" failed