Files
2026-07-13 12:37:57 +08:00

15 lines
331 B
Plaintext
Executable File

set -eu
# first run go fmt
gofmt -s -w .
BINDIR="$(git rev-parse --show-toplevel)"/bin
BINARY=$BINDIR/golangci-lint
# sync with .github/workflows/lint.yml
GOLANGCI_LINT_VERSION=v2.9.0
if [ ! -f "$BINARY" ]; then
curl -sSfL https://golangci-lint.run/install.sh | sh -s -- -b "$BINDIR" "$GOLANGCI_LINT_VERSION"
fi
$BINARY run