audit: enforce SSL/TLS MetaCPAN urls

Closes Homebrew/homebrew#39513.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Viktor Szakats 2015-05-08 05:43:49 +02:00 committed by Jack Nagel
parent 3895a0ae23
commit 6199da8fc7

View File

@ -863,6 +863,8 @@ class ResourceAuditor
problem "Bintray urls should be https://, not http (url is #{p})." problem "Bintray urls should be https://, not http (url is #{p})."
when %r[^http://tools\.ietf\.org/] when %r[^http://tools\.ietf\.org/]
problem "ietf urls should be https://, not http (url is #{p})." problem "ietf urls should be https://, not http (url is #{p})."
when %r[^http://search\.mcpan\.org/CPAN/(.*)]i
problem "MetaCPAN url should be `https://cpan.metacpan.org/#{$1}` (url is #{p})."
end end
end end