diff options
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Homebrew/cmd/audit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index f283771e5..3e717115c 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 |
