Skip to content
This repository has been archived by the owner on Dec 1, 2021. It is now read-only.

Commit

Permalink
Makefile: switch to staticcheck (#187)
Browse files Browse the repository at this point in the history
Remove deprecated linters that have been rolled into staticcheck.

Signed-off-by: Dave Cheney <[email protected]>
  • Loading branch information
davecheney authored Jan 5, 2019
1 parent 998beaf commit c9e70be
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PKGS := github.com/pkg/errors
SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS))
GO := go

check: test vet gofmt unused misspell unconvert gosimple ineffassign
check: test vet gofmt misspell unconvert staticcheck ineffassign unparam

test:
$(GO) test $(PKGS)
Expand All @@ -12,11 +12,7 @@ vet: | test

staticcheck:
$(GO) get honnef.co/go/tools/cmd/staticcheck
staticcheck $(PKGS)

unused:
$(GO) get honnef.co/go/tools/cmd/unused
unused -exported $(PKGS)
staticcheck -checks all $(PKGS)

misspell:
$(GO) get github.com/client9/misspell/cmd/misspell
Expand All @@ -29,15 +25,11 @@ unconvert:
$(GO) get github.com/mdempsky/unconvert
unconvert -v $(PKGS)

gosimple:
$(GO) get honnef.co/go/tools/cmd/gosimple
gosimple $(PKGS)

ineffassign:
$(GO) get github.com/gordonklaus/ineffassign
find $(SRCDIRS) -name '*.go' | xargs ineffassign

pedantic: check unparam errcheck staticcheck
pedantic: check errcheck

unparam:
$(GO) get mvdan.cc/unparam
Expand Down

0 comments on commit c9e70be

Please sign in to comment.