From 49aa9f5845c5aee663764f4131a70d9516a42dd4 Mon Sep 17 00:00:00 2001 From: Putnam3145 Date: Mon, 22 Aug 2022 16:49:44 -0700 Subject: [PATCH] Add a grep for empty Finds --- tools/ci/check_grep.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/ci/check_grep.sh b/tools/ci/check_grep.sh index 079f79704d..eb83ab46f8 100755 --- a/tools/ci/check_grep.sh +++ b/tools/ci/check_grep.sh @@ -100,6 +100,10 @@ if grep -i '/obj/effect/mapping_helpers/custom_icon' _maps/**/*.dmm; then echo "Custom icon helper found. Please include dmis as standard assets instead for built-in maps." st=1 fi; +if grep -n '.Find()' code/**/*.dm; then + echo "Empty Find() found. Please try to figure out what was meant to be found." + st=1 +fi; for json in _maps/*.json do map_path=$(jq -r '.map_path' $json)