brew audit: check for git://github.com/ urls and warn
This commit is contained in:
parent
6b2abeb4b9
commit
db76c21aee
@ -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
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user