Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Filter pre-commit golangci-lint to new issues only
rcourtman407024fdc7fd
diff --git a/.husky/pre-commit b/.husky/pre-commitindex 9f295f13a3..a2ae3b43df 100755--- a/.husky/pre-commit+++ b/.husky/pre-commit@@ -134,7 +134,16 @@ if command -v golangci-lint >/dev/null 2>&1; thenif [ -z "$STAGED_GO_PKGS" ]; thenSTAGED_GO_PKGS="./..."fi- GOMAXPROCS="${GOMAXPROCS:-2}" golangci-lint run --concurrency "${GOLANGCI_LINT_CONCURRENCY:-2}" --timeout "${GOLANGCI_LINT_TIMEOUT:-5m}" $STAGED_GO_PKGS+ # Report only issues introduced by the staged diff. Pre-existing+ # violations in touched packages do not block new commits, but any+ # new violation on a changed line still fails the commit. Override+ # with GOLANGCI_LINT_NEW_FROM_REV=HEAD~5 etc, or "" to lint everything.+ NEW_FROM_REV="${GOLANGCI_LINT_NEW_FROM_REV-HEAD}"+ NEW_FROM_FLAG=""+ if [ -n "$NEW_FROM_REV" ]; then+ NEW_FROM_FLAG="--new-from-rev=$NEW_FROM_REV"+ fi+ GOMAXPROCS="${GOMAXPROCS:-2}" golangci-lint run --concurrency "${GOLANGCI_LINT_CONCURRENCY:-2}" --timeout "${GOLANGCI_LINT_TIMEOUT:-5m}" $NEW_FROM_FLAG $STAGED_GO_PKGSelseecho "Skipping golangci-lint (no staged Go/module/linter changes)."fi