From e9cc07d4d3035501e1c0686e5ddc4a82b2f00393 Mon Sep 17 00:00:00 2001 From: kyu08 <49891479+kyu08@users.noreply.github.com> Date: Sun, 10 Aug 2025 18:28:31 +0900 Subject: [PATCH] Pass only Git-tracked Go files to gofumpt --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 38dc118cb..513221129 100644 --- a/Makefile +++ b/Makefile @@ -34,9 +34,11 @@ test: unit-test integration-test-all generate: go generate ./... +# If you execute `gofumpt -l -w .`, it will format all Go files in the current directory, including `test/_results/*` files. +# We pass only Git-tracked Go files to gofumpt because we don't want to format the test results or get errors from it. .PHONY: format format: - gofumpt -l -w . + git ls-files '*.go' ':!vendor' | xargs gofumpt -l -w .PHONY: lint lint: