File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ GO_FILES := $(shell \
44 find . '(' -path '* /.* ' -o -path './vendor' ') ' -prune \
55 -o -name '*.go' -print | cut -b3-)
66
7- GOLINT = $(GOBIN ) /golint
87STATICCHECK = $(GOBIN ) /staticcheck
98
109.PHONY : build
2423 go test -coverprofile=cover.out -covermode=atomic -coverpkg=./... ./...
2524 go tool cover -html=cover.out -o cover.html
2625
27- $(GOLINT ) : tools/go.mod
28- cd tools && go install golang.org/x/lint/golint
29-
3026$(STATICCHECK ) : tools/go.mod
3127 cd tools && go install honnef.co/go/tools/cmd/staticcheck@2023.1.2
3228
@@ -37,8 +33,6 @@ lint: $(GOLINT) $(STATICCHECK)
3733 @gofmt -d -s $(GO_FILES ) 2>&1 | tee lint.log
3834 @echo " Checking go vet"
3935 @go vet ./... 2>&1 | tee -a lint.log
40- @echo " Checking golint"
41- @$(GOLINT ) ./... | tee -a lint.log
4236 @echo " Checking staticcheck"
4337 @$(STATICCHECK ) ./... 2>&1 | tee -a lint.log
4438 @echo " Checking for license headers..."
You can’t perform that action at this time.
0 commit comments