From b0fd4831d5d4f67c844cb4597e088207e2acfec4 Mon Sep 17 00:00:00 2001 From: Markus Reiter Date: Sat, 20 Mar 2021 22:20:55 +0100 Subject: [PATCH] New casks should use `livecheck`. --- Library/Homebrew/cask/audit.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Library/Homebrew/cask/audit.rb b/Library/Homebrew/cask/audit.rb index 2fec78dd1e..5cf1270372 100644 --- a/Library/Homebrew/cask/audit.rb +++ b/Library/Homebrew/cask/audit.rb @@ -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