Add the reason why we ignore old blog typos
Signed-off-by: yuswift <yuswift2018@gmail.com>pull/28954/head
parent
919995fe3b
commit
a78abf5b86
|
@ -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}"
|
||||
|
|
Loading…
Reference in New Issue