fix(build): fmt: ignore auto-generated files

This commit is contained in:
Yousong Zhou
2020-12-15 22:10:34 +08:00
parent 549ae15a44
commit a290a6a49d

View File

@@ -126,6 +126,11 @@ clean:
fmt:
@git ls-files --exclude '*' '*.go' \
| grep -v '^vendor/' \
| while read f; do \
if ! grep -m1 -q '^// Code generated .* DO NOT EDIT\.$$' "$$f"; then \
echo "$$f"; \
fi ; \
done \
| xargs $(XARGS_FLAGS) gofmt -w
fmt-check: fmt