Files
zeekay 7c3ba4a667 fix: remove local replace directives and update CI linting
- Remove local replace directives for netrunner and genesis
- Replace golangci-lint with staticcheck for Go 1.25 compatibility
- Update lint.sh to use staticcheck
2025-12-22 07:24:15 -08:00

27 lines
509 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Run go fmt
echo "Running go fmt..."
fmt_output=$(gofmt -l .)
if [ -n "$fmt_output" ]; then
echo "The following files need to be formatted:"
echo "$fmt_output"
exit 1
fi
# Run go vet
echo "Running go vet..."
go vet ./...
# Run staticcheck
echo "Running staticcheck..."
if command -v staticcheck &> /dev/null; then
staticcheck ./... || true
else
go install honnef.co/go/tools/cmd/staticcheck@latest
staticcheck ./... || true
fi
echo "All checks passed!"