1
0
Fork 0
mirror of https://github.com/laravel-ls/uri synced 2026-06-16 01:54:57 +02:00

hack/make/go: update go.mk

This commit is contained in:
Koichi Shiraishi 2019-06-05 12:15:13 +09:00
parent e878995d98
commit 06512c375e
No known key found for this signature in database
GPG key ID: A71DFD3B4DA7A79B

View file

@ -144,18 +144,7 @@ coverage/ci: ## Takes packages test coverage, and output coverage results to CI
## lint
.PHONY: lint
lint: lint/vet lint/golangci-lint ## Run all linters.
$(GO_PATH)/bin/vet:
@GO111MODULE=off go get -u golang.org/x/tools/go/analysis/cmd/vet golang.org/x/tools/go/analysis/passes/...
.PHONY: cmd/vet
cmd/vet: $(GO_PATH)/bin/vet # go get 'vet' binary
.PHONY: lint/vet
lint/vet: cmd/vet
$(call target)
@GO111MODULE=on vet -asmdecl -assign -atomic -atomicalign -bool -bools -buildtag -buildtags -cgocall -compositewhitelist -copylocks -errorsas -httpresponse -loopclosure -lostcancel -methods -nilfunc -nilness -printfuncs -rangeloops -shift -source -stdmethods -structtag -tags -tests -unmarshal -unreachable -unsafeptr -unusedfuncs -unusedstringmethods $(GO_PKGS)
lint: lint/golangci-lint ## Run all linters.
$(GO_PATH)/bin/golangci-lint:
@GO111MODULE=off go get -u github.com/golangci/golangci-lint/cmd/golangci-lint