File tree 1 file changed +3
-11
lines changed
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
2
2
SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS ) )
3
3
GO := go
4
4
5
- check : test vet gofmt unused misspell unconvert gosimple ineffassign
5
+ check : test vet gofmt misspell unconvert staticcheck ineffassign unparam
6
6
7
7
test :
8
8
$(GO ) test $(PKGS )
@@ -12,11 +12,7 @@ vet: | test
12
12
13
13
staticcheck :
14
14
$(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 )
20
16
21
17
misspell :
22
18
$(GO ) get github.com/client9/misspell/cmd/misspell
@@ -29,15 +25,11 @@ unconvert:
29
25
$(GO ) get github.com/mdempsky/unconvert
30
26
unconvert -v $(PKGS )
31
27
32
- gosimple :
33
- $(GO ) get honnef.co/go/tools/cmd/gosimple
34
- gosimple $(PKGS )
35
-
36
28
ineffassign :
37
29
$(GO ) get github.com/gordonklaus/ineffassign
38
30
find $(SRCDIRS ) -name ' *.go' | xargs ineffassign
39
31
40
- pedantic : check unparam errcheck staticcheck
32
+ pedantic : check errcheck
41
33
42
34
unparam :
43
35
$(GO ) get mvdan.cc/unparam
You can’t perform that action at this time.
0 commit comments