Skip to content
Snippets Groups Projects
Commit 86ee198a authored by Viktor Szakats's avatar Viktor Szakats Committed by Mike McQuaid
Browse files

audit: enforce new https url style for gnome downloads


also delete extra closing parenthesis in two problem messages

Closes Homebrew/homebrew#38824.

Signed-off-by: default avatarMike McQuaid <mike@mikemcquaid.com>
parent 64e07fc9
No related branches found
No related tags found
No related merge requests found
......@@ -279,9 +279,9 @@ class FormulaAuditor
# "Software" is redirected to https://wiki.freedesktop.org/www/Software/project_name
if homepage =~ %r[^http://((?:www|nice|libopenraw|liboil|telepathy|xorg)\.)?freedesktop\.org/(?:wiki/)?]
if homepage =~ /Software/
problem "The url should be styled `https://wiki.freedesktop.org/www/Software/project_name`, not #{homepage})."
problem "The url should be styled `https://wiki.freedesktop.org/www/Software/project_name`, not #{homepage}."
else
problem "The url should be styled `https://wiki.freedesktop.org/project_name`, not #{homepage})."
problem "The url should be styled `https://wiki.freedesktop.org/project_name`, not #{homepage}."
end
end
......@@ -342,6 +342,8 @@ class FormulaAuditor
problem "Bintray urls should be https://, not http (url is #{p})."
when %r[^http://tools\.ietf\.org/]
problem "ietf urls should be https://, not http (url is #{p})."
when %r[^(http|ftp)://ftp\.gnome\.org/pub/gnome/(.*)]i
problem "Gnome url should be `https://download.gnome.org/#{$2}` (url is #{p})."
end
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