Commit 5a8a380 1 parent d8caee5 commit 5a8a380 Copy full SHA for 5a8a380
File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1
1
DEPS = $(wildcard * /* /* /* .go)
2
2
VERSION = $(shell git describe --always --dirty)
3
3
4
- all : lint vet test prometheus-puppetdb prometheus-puppetdb.1
4
+ all : lint test prometheus-puppetdb prometheus-puppetdb.1
5
5
6
6
prometheus-puppetdb : main.go $(DEPS )
7
7
GO111MODULE=on CGO_ENABLED=0 GOOS=linux \
@@ -17,16 +17,16 @@ clean:
17
17
rm -f prometheus-puppetdb prometheus-puppetdb.1
18
18
19
19
lint :
20
- @ go get -v golang.org/x/lint/golint
20
+ go vet $<
21
+ @GO111MODULE=off go get -u honnef.co/go/tools/cmd/staticcheck
22
+ staticcheck -tests ./...
23
+ @GO111MODULE=off go get -u golang.org/x/lint/golint
21
24
@for file in $$(go list ./... | grep -v '_workspace/' | grep -v 'vendor' ) ; do \
22
25
export output=" $$ (golint $$ {file} | grep -v 'type name will be used as docker.DockerInfo')" ; \
23
26
[ -n " $$ {output}" ] && echo " $$ {output}" && export status=1; \
24
27
done ; \
25
28
exit $$ {status:-0}
26
29
27
- vet : main.go
28
- go vet $<
29
-
30
30
vendor :
31
31
go mod vendor
32
32
You can’t perform that action at this time.
0 commit comments