From 4b2eb86bbf5bb0ae76619e67be1bc99e8b68ee40 Mon Sep 17 00:00:00 2001 From: Jason Tedor Date: Tue, 29 Dec 2015 10:50:19 -0500 Subject: [PATCH] audit: allow whitelisting of versioned Kibana. This commit modifies the whitelisting of the Kibama formula from the npm audit check to allow the versioned Kibana formulae to receive the same whitelisting. Closes Homebrew/homebrew#47500. Signed-off-by: Mike McQuaid --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index bcce9e5708..d233afaa92 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -614,7 +614,7 @@ class FormulaAuditor problem "\"Formula.factory(name)\" is deprecated in favor of \"Formula[name]\"" end - if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name != "kibana" + if text =~ /system "npm", "install"/ && text !~ %r[opt_libexec\}/npm/bin] && formula.name !~ /^kibana(\d{2})?$/ need_npm = "\#{Formula[\"node\"].opt_libexec\}/npm/bin" problem <<-EOS.undent Please add ENV.prepend_path \"PATH\", \"#{need_npm}"\ to def install