diff --git a/Library/Homebrew/rubocops/text.rb b/Library/Homebrew/rubocops/text.rb
index 7f695da721418cdb3b78d416a9d7fcf50f1117cd..ec8130abb7e2a1a0e96cab923a6ef4ccacc1d120 100644
--- a/Library/Homebrew/rubocops/text.rb
+++ b/Library/Homebrew/rubocops/text.rb
@@ -16,8 +16,8 @@ module RuboCop
             problem "Formulae should not depend on both OpenSSL and LibreSSL (even optionally)."
           end
 
-          if depends_on?("veclibfort") || depends_on?("lapack")
-            problem "Formulae should use OpenBLAS as the default serial linear algebra library." if formula_tap == "homebrew-core"
+          if formula_tap == "homebrew-core" && (depends_on?("veclibfort") || depends_on?("lapack"))
+            problem "Formulae should use OpenBLAS as the default serial linear algebra library."
           end
 
           if method_called_ever?(body_node, :virtualenv_create) ||