From 11295db68af87348e6013c79b50eee491cf8ca0e Mon Sep 17 00:00:00 2001 From: sneak Date: Thu, 8 Jan 2026 03:37:58 -0800 Subject: [PATCH] Exclude vendor directory from format checks --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 61852d4..3413100 100644 --- a/Makefile +++ b/Makefile @@ -10,12 +10,12 @@ check: fmt-check lint test # Check formatting without modifying files fmt-check: @echo "Checking formatting..." - @test -z "$$(gofmt -l .)" || (echo "Files need formatting:"; gofmt -l .; exit 1) + @test -z "$$(gofmt -l . | grep -v '^vendor/')" || (echo "Files need formatting:"; gofmt -l . | grep -v '^vendor/'; exit 1) # Format code fmt: @echo "Formatting code..." - gofmt -w . + gofmt -w $$(find . -name '*.go' -not -path './vendor/*') # Run linter lint: