Skip to content

Commit

Permalink
add go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
fangyincheng committed Dec 20, 2020
1 parent f269e62 commit 3cf6ced
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ endif
GO_BUILD = $(GO) build
GO_GET = $(GO) get
GO_TEST = $(GO) test
GO_FMT = $(GO) fmt
GO_BUILD_FLAGS = -v
GO_BUILD_LDFLAGS = -X main.version=$(VERSION)

Expand Down Expand Up @@ -67,8 +68,12 @@ deps: prepare
license: clean prepareLic
$(GO_LICENSE_CHECKER) -v -a -r -i vendor $(LICENSE_DIR)/license.txt . go && [[ -z `git status -s` ]]

.PHONY: fmt
fmt: clean prepareZk
$(GO_FMT) ./... && [[ -z `git status -s` ]]

.PHONY: verify
verify: clean license test
verify: clean fmt license test

.PHONY: clean
clean: prepare
Expand Down

0 comments on commit 3cf6ced

Please sign in to comment.