]>
git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blob - scripts/errcheck.sh
4 echo "==> Checking for unchecked errors..."
6 if ! which errcheck
> /dev
/null
; then
7 echo "==> Installing errcheck..."
8 go get
-u github.com
/kisielk
/errcheck
11 err_files
=$
(errcheck
-ignoretests \
12 -ignore 'github.com/hashicorp/terraform/helper/schema:Set' \
14 -ignore 'io:Close|Write' \
15 $(go list ./...| grep -v /vendor/))
17 if [[ -n ${err_files} ]]; then
18 echo 'Unchecked errors found in the following places:'
20 echo "Please handle returned errors. You can check directly with \`make errcheck\`"