Exclude vendors from checking go fmt

This commit is contained in:
Taras Kushnir
2026-02-13 14:57:15 +02:00
parent 0db0153337
commit 2f7e8018cb
+1 -1
View File
@@ -2,7 +2,7 @@
set -euo pipefail
mapfile -t STAGED_GO_FILES < <(
git diff --cached --name-only --diff-filter=ACM | grep '\.go$' || true
git diff --cached --name-only --diff-filter=ACM | grep '\.go$' | grep -v '^vendor/' || true
)
if [ ${#STAGED_GO_FILES[@]} -eq 0 ]; then