Spell checker: add an argument to pass file containing ignored patterns

pull/13469/head
Lingkai Dong 2020-08-20 16:05:31 +01:00
parent e00d6feb37
commit 8c610a6544
1 changed files with 3 additions and 1 deletions

View File

@ -114,7 +114,9 @@ while read file; do
echo "_________________________________"
fi
done < <(find "${1}" -type d -iname "*target*" -prune -o -name '*.h' -print)
# ${1}: directory to check
# ${2}: file containing a list of paths (regex) to exclude
done < <(find "${1}" -type d -iname "*target*" -prune -o -name '*.h' -print | grep -v -f "${2}")
echo "----------------------------------------------------------------------------------"
echo "Total Errors Found: ${ERRORS}"