From 48ffdcb080e3f6774066057b46526e3231e4ce68 Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Mon, 19 Oct 2020 18:55:53 +0200 Subject: [PATCH] tools/codespell: make it fail when typos are found --- dist/tools/codespell/check.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/tools/codespell/check.sh b/dist/tools/codespell/check.sh index 15f5f2aca2..aeb088f90e 100755 --- a/dist/tools/codespell/check.sh +++ b/dist/tools/codespell/check.sh @@ -56,8 +56,8 @@ if [ -n "${ERRORS}" ] then printf "%sThere are typos in the following files:%s\n\n" "${CERROR}" "${CRESET}" printf "%s\n" "${ERRORS}" - # TODO: return 1 when all typos are fixed - exit 0 + printf "If those are false positives, add them to %s\n" "${RIOTTOOLS}/codespell/ignored_words.txt" + exit 1 else exit 0 fi