Skip to content

Commit

Permalink
Makefile: minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zchee committed Feb 4, 2021
1 parent 19e9841 commit ecae0af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,14 @@ lint: fmt lint/golangci-lint ## Run all linters.

.PHONY: fmt
fmt: tools/bin/goimports tools/bin/gofumpt ## Run goimports and gofumpt.
$(call target)
find . -iname "*.go" -not -path "./vendor/**" | xargs -P ${JOBS} ${TOOLS_BIN}/goimports -local=${PKG},$(subst /jsonrpc2,,$(PKG)) -w
find . -iname "*.go" -not -path "./vendor/**" | xargs -P ${JOBS} ${TOOLS_BIN}/gofumpt -s -extra -w

.PHONY: lint/golangci-lint
lint/golangci-lint: tools/bin/golangci-lint .golangci.yml ## Run golangci-lint.
$(call target)
@${TOOLS_BIN}/golangci-lint -j ${JOBS} run $(strip ${GO_LINT_FLAGS}) ./...
${TOOLS_BIN}/golangci-lint -j ${JOBS} run $(strip ${GO_LINT_FLAGS}) ./...


##@ tools
Expand Down

0 comments on commit ecae0af

Please sign in to comment.