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:
parent
e878995d98
commit
06512c375e
1 changed files with 1 additions and 12 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue