Merge pull request #4623 from commitay/github-latest

cask audit: GitHub `latest` casks shouldn't have an appcast
This commit is contained in:
Markus Reiter 2018-08-12 21:57:45 +02:00 committed by GitHub
commit a985f0a5d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -213,6 +213,7 @@ module Hbc
case cask.url.to_s
when %r{github.com/([^/]+)/([^/]+)/releases/download/(\S+)}
return if cask.version.latest?
add_warning "Download uses GitHub releases, #{add_appcast}"
when %r{sourceforge.net/(\S+)}
return if cask.version.latest?