Add clang-format #178
1 changed files with 9 additions and 0 deletions
9
Makefile
9
Makefile
|
@ -62,10 +62,19 @@ cover:
|
||||||
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic
|
@go test -v -race ./... -coverprofile=coverage.txt -covermode=atomic
|
||||||
@go tool cover -html=coverage.txt -o coverage.html
|
@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
|
# Reformat code
|
||||||
format:
|
format:
|
||||||
@echo "⇒ Processing gofmt check"
|
@echo "⇒ Processing gofmt check"
|
||||||
@gofmt -s -w ./
|
@gofmt -s -w ./
|
||||||
|
@echo "⇒ Processing clang format"
|
||||||
|
@clang-format -i **/*.js
|
||||||
fyrchik
commented
Please, use Please, use `fmt:`, we are not building clang, we are formatting code.
fyrchik
commented
Actually, we already have Actually, we already have `format`.
|
|||||||
|
|
||||||
# Run linters
|
# Run linters
|
||||||
lint:
|
lint:
|
||||||
|
|
Loading…
Reference in a new issue
This is completely unrelated to the commit
Makefile: Add clang-format support