aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/audit.rb
diff options
context:
space:
mode:
authorMarkus Reiter2017-02-12 11:05:21 +0100
committerGitHub2017-02-12 11:05:21 +0100
commit1292a4b219ad6e99a06fdf2a8c623e99a2354710 (patch)
tree13921387147ffd5bd8858ad060d7f68ed9e4fcef /Library/Homebrew/dev-cmd/audit.rb
parentcf18a999f1b6b0d8932260ed1ff9ede30c338515 (diff)
parent03253a8d8b66b49eb6b6a7edd4ed353bcbf3a238 (diff)
downloadbrew-1292a4b219ad6e99a06fdf2a8c623e99a2354710.tar.bz2
Merge pull request #1955 from vszakats/patch-2
audit: enforce https://*.sourceforge.io/ homepages
Diffstat (limited to 'Library/Homebrew/dev-cmd/audit.rb')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 7a5d38afe..e3ba46fe7 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -584,6 +584,10 @@ class FormulaAuditor
problem "Please use https:// for #{homepage}"
end
+ if homepage =~ %r{^http://([^/]*)\.(sf|sourceforge)\.net(/|$)}
+ problem "#{homepage} should be `https://#{$1}.sourceforge.io/`"
+ end
+
# There's an auto-redirect here, but this mistake is incredibly common too.
# Only applies to the homepage and subdomains for now, not the FTP URLs.
if homepage =~ %r{^http://((?:build|cloud|developer|download|extensions|git|glade|help|library|live|nagios|news|people|projects|rt|static|wiki|www)\.)?gnome\.org}