From e12e5c912cd42abe4aebf54c21f57f5a8c735dc6 Mon Sep 17 00:00:00 2001 From: w0rp Date: Wed, 15 Nov 2017 12:00:08 +0000 Subject: Complain about stray echo lines in the codebase --- test/script/custom-checks | 1 + 1 file changed, 1 insertion(+) (limited to 'test/script/custom-checks') diff --git a/test/script/custom-checks b/test/script/custom-checks index a1a734d8..e2c906b3 100755 --- a/test/script/custom-checks +++ b/test/script/custom-checks @@ -90,5 +90,6 @@ check_errors '==#' "Use 'is#' instead of '==#'. 0 ==# 'foobar' is true" check_errors '==?' "Use 'is?' instead of '==?'. 0 ==? 'foobar' is true" check_errors '!=#' "Use 'isnot#' instead of '!=#'. 0 !=# 'foobar' is false" check_errors '!=?' "Use 'isnot?' instead of '!=?'. 0 !=? 'foobar' is false" +check_errors '^ *:\?echo' "Stray echo line. Use \`execute echo\` if you want to echo something" exit $RETURN_CODE -- cgit v1.2.3