bd125376b7
* Add default linters and bump golangci-lint version * More aggressive policy
14 lines
314 B
Plaintext
Executable File
14 lines
314 B
Plaintext
Executable File
set -eu
|
|
|
|
# first run go fmt
|
|
gofmt -s -w .
|
|
|
|
BINDIR="$(git rev-parse --show-toplevel)"/bin
|
|
BINARY=$BINDIR/golangci-lint
|
|
GOLANGCI_LINT_VERSION=v2.5.0
|
|
|
|
if [ ! -f "$BINARY" ]; then
|
|
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s "$GOLANGCI_LINT_VERSION"
|
|
fi
|
|
|
|
$BINARY run |