Skip to content

Commit c9e70be

Browse files
authored
Makefile: switch to staticcheck (pkg#187)
Remove deprecated linters that have been rolled into staticcheck. Signed-off-by: Dave Cheney <[email protected]>
1 parent 998beaf commit c9e70be

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

Makefile

+3-11
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PKGS := github.com/pkg/errors
22
SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS))
33
GO := go
44

5-
check: test vet gofmt unused misspell unconvert gosimple ineffassign
5+
check: test vet gofmt misspell unconvert staticcheck ineffassign unparam
66

77
test:
88
$(GO) test $(PKGS)
@@ -12,11 +12,7 @@ vet: | test
1212

1313
staticcheck:
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

2117
misspell:
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-
3628
ineffassign:
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

4234
unparam:
4335
$(GO) get mvdan.cc/unparam

0 commit comments

Comments
 (0)