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

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

parent 6b2abeb4
No related branches found
No related tags found
No related merge requests found
......@@ -199,6 +199,13 @@ def audit_formula_urls f
end
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
end
......
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