Add the reason why we ignore old blog typos

Signed-off-by: yuswift <yuswift2018@gmail.com>
pull/28954/head
yuswift 2021-07-18 20:19:02 +08:00
parent 919995fe3b
commit a78abf5b86
1 changed files with 3 additions and 0 deletions

View File

@ -63,6 +63,9 @@ cd "${ROOT}"
RES=0 RES=0
echo "Checking spelling..." echo "Checking spelling..."
ERROR_LOG="${TMP_DIR}/errors.log" 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" skipping_file="${KUBE_ROOT}/scripts/.spelling_failures"
failing_packages=$(sed "s| | -e |g" "${skipping_file}") failing_packages=$(sed "s| | -e |g" "${skipping_file}")
git ls-files | grep content/${LANGUAGE} | grep -v -e "${failing_packages}" | xargs misspell > "${ERROR_LOG}" git ls-files | grep content/${LANGUAGE} | grep -v -e "${failing_packages}" | xargs misspell > "${ERROR_LOG}"