rubocops/text: Prefer lib/"string" over lib+"string"
#36284
tests.yml
on: pull_request
syntax
1m 50s
tap syntax
4m 55s
formula audit
5m 41s
cask audit
1m 43s
vendored gems
53s
Matrix: analytics
Matrix: bundle-and-services
Matrix: test-bot
Matrix: tests
Matrix: update-test
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
|