k3s/scripts/codespell.sh
Hussein Galal 3fba7c1021
Update to v1.21.6 (#4350)
* Update to v1.21.6

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

* Ignore go.mod and go.sum for codespell

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>

* Update to v1.21.6

Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com>
2021-10-28 22:38:40 +02:00

13 lines
362 B
Bash
Executable File

#!/bin/bash
set -e
# 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
codespell --skip=.git,./vendor,./go.sum,./go.mod --check-filenames --ignore-words-list=ba
code=$?
if [ $code -ne 0 ]; then
echo "Error: codespell found one or more problems!"
exit $code
fi