Merge pull request #1898 from CaoShuFeng/misspell

fix verify-spelling.sh scripts
This commit is contained in:
k8s-ci-robot 2018-03-05 21:22:50 -08:00 committed by GitHub
commit 6fe8a23b20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,5 +33,5 @@ fi
# Spell checking # Spell checking
# All the skipping files are defined in hack/.spelling_failures # All the skipping files are defined in hack/.spelling_failures
skipping_file="${KUBE_ROOT}/hack/.spelling_failures" skipping_file="${KUBE_ROOT}/hack/.spelling_failures"
failing_packages=$(echo `cat hack/.spelling_failures` | sed "s| | -e |g") failing_packages=$(echo `cat ${skipping_file}` | sed "s| | -e |g")
git ls-files | grep -v -e ${failing_packages} | xargs misspell -i "Creater,creater,ect" -error -o stderr git ls-files | grep -v -e ${failing_packages} | xargs misspell -i "" -error -o stderr