mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
cask/audit: skip additional livecheck audit when cask is discontinued
This commit is contained in:
parent
65e077aac9
commit
fa2e4d4401
@ -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)}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user