2020-12-22 20:35:58 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Ignore vendor folder and check file names as well
|
|
|
|
# Note: ignore "ba" in https://github.com/k3s-io/k3s/blob/4317a91/scripts/provision/vagrant#L54
|
2021-12-03 21:44:05 +00:00
|
|
|
codespell --skip=.git,./vendor,MAINTAINERS,go.mod,go.sum --check-filenames --ignore-words-list=ba
|
2020-12-22 20:35:58 +00:00
|
|
|
|
|
|
|
code=$?
|
|
|
|
if [ $code -ne 0 ]; then
|
2020-12-29 02:14:15 +00:00
|
|
|
echo "Error: codespell found one or more problems!"
|
2020-12-22 20:35:58 +00:00
|
|
|
exit $code
|
|
|
|
fi
|