diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index f283771e5cc7964cea352f6617cbbfd222741897..3e717115c515db8b8d790a19cd3bea890ce2d427 100755 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -144,6 +144,10 @@ end def audit_formula_urls f problems = [] + unless f.homepage =~ %r[^https?://] + problems << " * The homepage should start with http or https." + end + urls = [(f.url rescue nil), (f.head rescue nil)].reject {|p| p.nil?} # Check SourceForge urls