mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
Scripts: exclude plugin argument selector trick
This commit is contained in:
parent
f5e0735d94
commit
e3003959bc
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user