From 2eb0065ced3dd9901278c001754fdd0313f85ab8 Mon Sep 17 00:00:00 2001
From: Adam Vandenberg <flangy@gmail.com>
Date: Tue, 15 Mar 2011 21:40:09 -0700
Subject: [PATCH] brew audit: check that homepage includes the protocol

---
 Library/Homebrew/cmd/audit.rb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index f283771e5c..3e717115c5 100755
--- a/Library/Homebrew/cmd/audit.rb
+++ b/Library/Homebrew/cmd/audit.rb
@@ -144,6 +144,10 @@ end
 def audit_formula_urls f
   problems = []
 
+  unless f.homepage =~ %r[^https?://]
+    problems << " * The homepage should start with http or https."
+  end
+
   urls = [(f.url rescue nil), (f.head rescue nil)].reject {|p| p.nil?}
 
   # Check SourceForge urls
-- 
GitLab