From 88a75af1c365c4b770807665f692896304accdc9 Mon Sep 17 00:00:00 2001
From: Mike McQuaid <mike@mikemcquaid.com>
Date: Mon, 10 Apr 2017 21:04:26 +0100
Subject: [PATCH] audit: don't recommend version aliases on --devel.

As requested in #11462 by @neutric as this produces confusing,
incorrect output.
---
 Library/Homebrew/dev-cmd/audit.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index ba6c3f3334..fb6fb62d07 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -337,7 +337,7 @@ class FormulaAuditor
         unversioned_name = unversioned_formula.basename(".rb")
         problem "#{formula} is versioned but no #{unversioned_name} formula exists"
       end
-    else
+    elsif ARGV.build_stable?
       versioned_formulae = Dir[formula.path.to_s.gsub(/\.rb$/, "@*.rb")]
       needs_versioned_alias = !versioned_formulae.empty? &&
                               formula.tap &&
-- 
GitLab