Files
go-lint/ops/lint.sh
2026-10-14 13:20:52 -07:00

17 lines
373 B
Bash
Executable File

#!/usr/bin/env sh
set -e
SCRIPT_DIR=$(cd "$(dirname "$0")" && pwd)
SERVER_ROOT="$SCRIPT_DIR/.."
cd "$SERVER_ROOT" # Run script from server directory
./ops/build.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