mirror of https://github.com/ARMmbed/mbed-os.git
Spell checker: add an argument to pass file containing ignored patterns
parent
e00d6feb37
commit
8c610a6544
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue