From 9c345bfc03894048fb225ddf820b33c5c1a1f31a Mon Sep 17 00:00:00 2001 From: Ian Lancaster Date: Wed, 5 Mar 2014 02:13:00 -0500 Subject: [PATCH] audit: Raise problem with non-https Google Code download urls --- Library/Homebrew/cmd/audit.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index dfc8f17c4c..8b8489acc5 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -251,6 +251,11 @@ class FormulaAuditor end end + # Check for Google Code download urls, https:// is preferred + urls.grep(%r[^http://.*\.googlecode\.com/files.*]) do |u| + problem "Use https:// URLs for downloads from Google Code (url is #{u})." + end + # Check for git:// GitHub repo urls, https:// is preferred. urls.grep(%r[^git://[^/]*github\.com/]) do |u| problem "Use https:// URLs for accessing GitHub repositories (url is #{u})."