tools/codespell: make it fail when typos are found

This commit is contained in:
Alexandre Abadie 2020-10-19 18:55:53 +02:00
parent ce5b8a83b1
commit 48ffdcb080
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405

View File

@ -56,8 +56,8 @@ if [ -n "${ERRORS}" ]
then then
printf "%sThere are typos in the following files:%s\n\n" "${CERROR}" "${CRESET}" printf "%sThere are typos in the following files:%s\n\n" "${CERROR}" "${CRESET}"
printf "%s\n" "${ERRORS}" printf "%s\n" "${ERRORS}"
# TODO: return 1 when all typos are fixed printf "If those are false positives, add them to %s\n" "${RIOTTOOLS}/codespell/ignored_words.txt"
exit 0 exit 1
else else
exit 0 exit 0
fi fi