-
Notifications
You must be signed in to change notification settings - Fork 58
/
Makefile
43 lines (30 loc) · 888 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SHELL := /bin/bash
devsetup:
go get "github.com/kisielk/errcheck"
go get "github.com/golang/lint/golint"
go get "github.com/gordonklaus/ineffassign"
go get "github.com/client9/misspell/cmd/misspell"
go get "gopkg.in/alecthomas/gometalinter.v1"
test:
go test ./
fasttest:
go test -short ./
cover:
go test -coverprofile=cover.out ./
checkerrs:
errcheck -blank -asserts -ignoretests ./
checkfmt:
! gofmt -l -d ./ 2>&1 | read
checkvet:
go tool vet -all ./
checkiea:
ineffassign ./
checkspell:
misspell -error ./
lint:
golint -set_exit_status -min_confidence 0.81 ./
race:
go test -race ./
metalinter:
gometalinter.v1 --vendor --disable-all --enable=vet --enable=vetshadow --enable=golint --enable=ineffassign --enable=misspell --enable=gofmt --tests ./
.PHONY: all test devsetup fasttest lint cover checkerrs checkfmt checkvet checkiea checkspell race metalinter