From cf848a14d2de60b425d6e279051a919ff6ad1e43 Mon Sep 17 00:00:00 2001 From: Gautham Goli Date: Mon, 22 May 2017 13:09:49 +0530 Subject: audit: Port audit_caveats method to rubocop and add tests --- Library/Homebrew/dev-cmd/audit.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Library/Homebrew/dev-cmd') diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb index 4ceff0f3d..bf7d2fc79 100644 --- a/Library/Homebrew/dev-cmd/audit.rb +++ b/Library/Homebrew/dev-cmd/audit.rb @@ -1148,11 +1148,6 @@ class FormulaAuditor problem "Use pkgshare instead of (share#{$1}\"#{formula.name}\")" end - def audit_caveats - return unless formula.caveats.to_s.include?("setuid") - problem "Don't recommend setuid in the caveats, suggest sudo instead." - end - def audit_reverse_migration # Only enforce for new formula being re-added to core and official taps return unless @strict -- cgit v1.2.3