From fe90707913df2c9b5616a85ea6a6940081fb48e9 Mon Sep 17 00:00:00 2001 From: Alexander Chuprov Date: Fri, 15 Nov 2024 19:02:47 +0300 Subject: [PATCH] [#164] Makefile: Add clang-format support Signed-off-by: Alexander Chuprov --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Makefile b/Makefile index b834155..baea79a 100644 --- a/Makefile +++ b/Makefile @@ -62,10 +62,19 @@ cover: @go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic @go tool cover -html=coverage.txt -o coverage.html +# Install gofumpt +fumpt-install: + @echo "⇒ Processing fumpt install" + @rm -rf $(GOFUMPT_DIR) + @mkdir $(GOFUMPT_DIR) + @GOBIN=$(GOFUMPT_VERSION_DIR) go install mvdan.cc/gofumpt@$(GOFUMPT_VERSION) + # Reformat code format: @echo "⇒ Processing gofmt check" @gofmt -s -w ./ + @echo "⇒ Processing clang format" + @clang-format -i **/*.js # Run linters lint: