#!/usr/bin/env bash set -euo pipefail REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" cd "${REPO_DIR}" export PATH="$(go env GOPATH)/bin:${PATH}" if ! command -v staticcheck >/dev/null 2>&1; then echo "[lint] installing staticcheck" go install honnef.co/go/tools/cmd/staticcheck@latest fi echo "[lint] go vet" go vet ./... echo "[lint] staticcheck (pedantic code-smell pass)" staticcheck ./...