From e3003959bce277505b09158725c22e170a57a5eb Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 24 Apr 2025 10:05:25 +0200 Subject: [PATCH] Scripts: exclude plugin argument selector trick --- Scripts/unused-functions.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/unused-functions.sh b/Scripts/unused-functions.sh index 23842d103..84a653385 100755 --- a/Scripts/unused-functions.sh +++ b/Scripts/unused-functions.sh @@ -58,7 +58,7 @@ grep -Eor '^function &?[^( ]+' ${TESTDIR} | tr ':' ' ' | tr -d '&' | while read fi # either by direct call xxx( or wrapped in single quotes - USED=$(grep -Fr -e "${FUNC}(" -e "'${FUNC}'" ${DIRS} | wc -l | awk '{ print $1 }') + USED=$(grep -Fr -e "${FUNC}(" -e "'${FUNC}'" -e "'${FUNC}:' ${DIRS} | wc -l | awk '{ print $1 }') if [ ${USED} -le 1 ]; then echo "${FUNC}() appears unused" ${NOTE} elif [ ${USED} -eq 2 ]; then