From a78abf5b86c2c0c208e1bd16f736e7131cee369b Mon Sep 17 00:00:00 2001 From: yuswift Date: Sun, 18 Jul 2021 20:19:02 +0800 Subject: [PATCH] Add the reason why we ignore old blog typos Signed-off-by: yuswift --- scripts/verify-spelling.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/verify-spelling.sh b/scripts/verify-spelling.sh index 99029c76d2..2d1ad2a9e2 100755 --- a/scripts/verify-spelling.sh +++ b/scripts/verify-spelling.sh @@ -63,6 +63,9 @@ cd "${ROOT}" RES=0 echo "Checking spelling..." ERROR_LOG="${TMP_DIR}/errors.log" + +# NOTE we usually don't correct old blog articles, so we ignore them in +# this file. skipping_file="${KUBE_ROOT}/scripts/.spelling_failures" failing_packages=$(sed "s| | -e |g" "${skipping_file}") git ls-files | grep content/${LANGUAGE} | grep -v -e "${failing_packages}" | xargs misspell > "${ERROR_LOG}"