This repository has been archived on 2022-08-18. You can view files and clone it, but cannot push or open issues or pull requests.
rageshake/scripts/lint.sh
Richard van der Hoff 47178dc5c5 clean up lint scripts
2020-06-04 12:53:08 +01:00

12 lines
269 B
Bash
Executable file

#!/bin/bash
#
# check the go source for lint. This is run by CI, and the pre-commit hook.
# we *don't* check gofmt here, following the advice at
# https://golang.org/doc/go1.10#gofmt
set -eu
golint -set_exit_status
go vet -vettool=$(which shadow)
gocyclo -over 12 .