Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (14 sloc) 494 Bytes
# Prefer go commands for basic tasks like `build`, `test`, etc...
.PHONY: lintdeps lint
lintdeps:
go get github.com/golang/lint/golint
go get github.com/kisielk/errcheck
go get github.com/client9/misspell/cmd/misspell
go get honnef.co/go/unused/cmd/unused
lint: lintdeps
! gofmt -d -s . | grep '^' # exit 1 if any output given
golint -set_exit_status ./...
go vet ./...
errcheck -asserts -ignoretests -ignore 'Close|Start|Serve|Remove'
misspell -error **/*.go **/*.md
unused ./...