aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd
diff options
context:
space:
mode:
authorViktor Szakats2017-02-13 15:49:33 +0100
committerViktor Szakats2017-02-13 14:58:28 +0000
commita09169f248de707bf8121acfb6c5d5c2b92c58de (patch)
treee136515873c9d97ff5f4d723ebf9095f9cac3da9 /Library/Homebrew/dev-cmd
parente116ba196e2834025c713a2a566e0e150907d6d0 (diff)
downloadbrew-a09169f248de707bf8121acfb6c5d5c2b92c58de.tar.bz2
audit: enforce https for *.sourceforge.io urls
Diffstat (limited to 'Library/Homebrew/dev-cmd')
-rw-r--r--Library/Homebrew/dev-cmd/audit.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/dev-cmd/audit.rb b/Library/Homebrew/dev-cmd/audit.rb
index 0522c7878..3447633eb 100644
--- a/Library/Homebrew/dev-cmd/audit.rb
+++ b/Library/Homebrew/dev-cmd/audit.rb
@@ -584,7 +584,9 @@ class FormulaAuditor
# People will run into mixed content sometimes, but we should enforce and then add
# exemptions as they are discovered. Treat mixed content on homepages as a bug.
# Justify each exemptions with a code comment so we can keep track here.
- if homepage =~ %r{^http://[^/]*github\.io/}
+ case homepage
+ when %r{^http://[^/]*github\.io/},
+ %r{^http://[^/]*\.sourceforge\.io/}
problem "Please use https:// for #{homepage}"
end