Warn about undocumented non-private APIs. #27233
Annotations
3 errors
|
Run brew tests:
opt/homebrew/Library/Homebrew/test/rubocops/caveats_spec.rb#L9
RuboCop::Cop::FormulaAudit::Caveats when auditing `caveats` reports an offense if `setuid` is mentioned
Failure/Error:
expect_offense(<<~RUBY)
class Foo < Formula
homepage "https://brew.sh/foo"
url "https://brew.sh/foo-1.0.tgz"
def caveats
"setuid"
^^^^^^^^ FormulaAudit/Caveats: Don't recommend setuid in the caveats, suggest sudo instead.
end
end
RUBY
Diff:
@@ -3,7 +3,7 @@
url "https://brew.sh/foo-1.0.tgz"
def caveats
"setuid"
- ^^^^^^^^ FormulaAudit/Caveats: Don't recommend setuid in the caveats, suggest sudo instead.
+ ^^^^^^^^ FormulaAudit/Caveats: Don't recommend `setuid` in the caveats, suggest `sudo` instead.
end
end
|
Run brew tests
The operation was canceled.
|
Loading