New casks should use livecheck.

This commit is contained in:
Markus Reiter 2021-03-20 22:20:55 +01:00
parent 7e2ba95169
commit b0fd4831d5

View File

@ -288,7 +288,11 @@ module Cask
def check_appcast_and_livecheck
return unless cask.appcast
add_error "Cask has a `livecheck`, the `appcast` should be removed." if cask.livecheckable?
if cask.livecheckable?
add_error "Cask has a `livecheck`, the `appcast` should be removed."
elsif new_cask?
add_error "New casks should use a `livecheck` instead of an `appcast`."
end
end
def check_latest_with_appcast_or_livecheck