This repository was archived by the owner on Dec 1, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ PKGS := github.com/pkg/errors
22SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS ) )
33GO := go
44
5- check : test vet gofmt unused misspell unconvert gosimple ineffassign
5+ check : test vet gofmt misspell unconvert staticcheck ineffassign unparam
66
77test :
88 $(GO ) test $(PKGS )
@@ -12,11 +12,7 @@ vet: | test
1212
1313staticcheck :
1414 $(GO ) get honnef.co/go/tools/cmd/staticcheck
15- staticcheck $(PKGS )
16-
17- unused :
18- $(GO ) get honnef.co/go/tools/cmd/unused
19- unused -exported $(PKGS )
15+ staticcheck -checks all $(PKGS )
2016
2117misspell :
2218 $(GO ) get github.com/client9/misspell/cmd/misspell
@@ -29,15 +25,11 @@ unconvert:
2925 $(GO ) get github.com/mdempsky/unconvert
3026 unconvert -v $(PKGS )
3127
32- gosimple :
33- $(GO ) get honnef.co/go/tools/cmd/gosimple
34- gosimple $(PKGS )
35-
3628ineffassign :
3729 $(GO ) get github.com/gordonklaus/ineffassign
3830 find $(SRCDIRS ) -name ' *.go' | xargs ineffassign
3931
40- pedantic : check unparam errcheck staticcheck
32+ pedantic : check errcheck
4133
4234unparam :
4335 $(GO ) get mvdan.cc/unparam
You can’t perform that action at this time.
0 commit comments