Merge pull request #15814 from Putnam3145/empty-find-lint

Add a grep for empty Find() calls
This commit is contained in:
Lin
2022-08-24 23:27:37 +00:00
committed by GitHub
+4
View File
@@ -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)