aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorIan Lancaster2014-03-05 02:13:00 -0500
committerAdam Vandenberg2014-03-08 09:10:54 -0800
commit8b8a356ae3975c7c4289b74250562963ba2545f9 (patch)
tree057e055870fa0f39f86bb45471b1710f1db83c12 /Library
parent3fbcdd0e3434bd9dd59a2e1b14b9e7cef3b14bef (diff)
downloadhomebrew-8b8a356ae3975c7c4289b74250562963ba2545f9.tar.bz2
audit: Raise problem with non-https Google Code download urls
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/audit.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb
index dfc8f17c4..8b8489acc 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})."