lint: enable custom linters from go-lint project

This commit is contained in:
2026-09-19 21:36:31 -07:00
parent ef71828ce2
commit c70732d6af
6 changed files with 83 additions and 5 deletions

16
ops/lint.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/bin/env sh
set -e
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
PROJECT_ROOT=$(cd "$SCRIPT_DIR/.." && pwd)
cd "$PROJECT_ROOT"
./ops/build-lint.sh --if-needed
GOLANGCI="./bin/golint"
echo "Linting $(go list ./... | wc -w) packages"
# Catches config keys in the wrong place, which are otherwise silently ignored.
"$GOLANGCI" config verify
"$GOLANGCI" run $@