File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -417,14 +417,14 @@ RESET := $(shell tput sgr0 2>/dev/null)
417
417
fmt : fmt/ts fmt/go fmt/terraform fmt/shfmt fmt/prettier
418
418
.PHONY : fmt
419
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
420
fmt/go :
423
421
go mod tidy
424
422
echo " $( GREEN) ==>$( RESET) $( BOLD) fmt/go$( RESET) "
425
423
# VS Code users should check out
426
424
# https://github.com/mvdan/gofumpt#visual-studio-code
427
- go run mvdan.cc/gofumpt@v0.4.0 -w -l $(GO_FMT_FILES )
425
+ find . $(FIND_EXCLUSIONS ) -type f -name ' *.go' -print0 | \
426
+ xargs -0 grep --null -L " DO NOT EDIT" | \
427
+ xargs -0 go run mvdan.cc/gofumpt@v0.4.0 -w -l
428
428
.PHONY : fmt/go
429
429
430
430
fmt/ts :
You can’t perform that action at this time.
0 commit comments