cask/audit: skip additional livecheck audit when cask is discontinued

This commit is contained in:
Bevan Kay 2022-06-18 13:16:34 +10:00
parent 65e077aac9
commit fa2e4d4401
No known key found for this signature in database
GPG Key ID: C55CB024B5314B57

View File

@ -308,7 +308,7 @@ module Cask
LIVECHECK_REFERENCE_URL = "https://docs.brew.sh/Cask-Cookbook#stanza-livecheck"
def check_hosting_with_livecheck(livecheck_result:)
return if block_url_offline? || cask.appcast || cask.livecheckable?
return if block_url_offline? || cask.appcast || cask.livecheckable? || cask.discontinued?
return if livecheck_result == :auto_detected
add_livecheck = "please add a livecheck. See #{Formatter.url(LIVECHECK_REFERENCE_URL)}"