Skip to content
Snippets Groups Projects
Commit 2eb0065c authored by Adam Vandenberg's avatar Adam Vandenberg
Browse files

brew audit: check that homepage includes the protocol

parent 5f5fdb32
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment