brew audit: check for git://github.com/ urls and warn

This commit is contained in:
Adam Vandenberg 2011-06-13 14:20:55 -07:00
parent 6b2abeb4b9
commit db76c21aee

View File

@ -199,6 +199,13 @@ def audit_formula_urls f
end end
end if strict? end if strict?
# Check for git:// urls; https:// is preferred.
urls.each do |p|
if p =~ %r[^git://github\.com/]
problems << " * Use https:// URLs for accessing repositories on GitHub."
end
end
return problems return problems
end end