audit: require https for all *.googlecode.com resources

Closes Homebrew/homebrew#39206.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Viktor Szakats 2015-04-30 03:28:46 +02:00 committed by Jack Nagel
parent 43ce8b0791
commit 2e3a0263d4

View File

@ -381,6 +381,8 @@ class FormulaAuditor
end end
# Check for Google Code download urls, https:// is preferred # Check for Google Code download urls, https:// is preferred
# Intentionally not extending this to SVN repositories due to certificate
# issues.
urls.grep(%r[^http://.*\.googlecode\.com/files.*]) do |u| urls.grep(%r[^http://.*\.googlecode\.com/files.*]) do |u|
problem "Use https:// URLs for downloads from Google Code (url is #{u})." problem "Use https:// URLs for downloads from Google Code (url is #{u})."
end end