We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6434199 commit 14579faCopy full SHA for 14579fa
Makefile
@@ -417,14 +417,14 @@ RESET := $(shell tput sgr0 2>/dev/null)
417
fmt: fmt/ts fmt/go fmt/terraform fmt/shfmt fmt/prettier
418
.PHONY: fmt
419
420
-GO_FMT_FILES := $(shell find . $(FIND_EXCLUSIONS) -type f -name '*.go' -exec sh -c 'grep -L "DO NOT EDIT" "{}" 2>/dev/null || true' \;)
421
-
422
fmt/go:
423
go mod tidy
424
echo "$(GREEN)==>$(RESET) $(BOLD)fmt/go$(RESET)"
425
# VS Code users should check out
426
# https://github.com/mvdan/gofumpt#visual-studio-code
427
- go run mvdan.cc/gofumpt@v0.4.0 -w -l $(GO_FMT_FILES)
+ find . $(FIND_EXCLUSIONS) -type f -name '*.go' -print0 | \
+ xargs -0 grep --null -L "DO NOT EDIT" | \
+ xargs -0 go run mvdan.cc/gofumpt@v0.4.0 -w -l
428
.PHONY: fmt/go
429
430
fmt/ts:
0 commit comments