forked from go-steem/rpc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (35 loc) · 838 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
44
45
46
47
48
49
WORKDIR=`pwd`
default: build
vet:
go vet ./...
tools:
go get honnef.co/go/tools/cmd/staticcheck
go get honnef.co/go/tools/cmd/gosimple
go get honnef.co/go/tools/cmd/unused
go get github.com/gordonklaus/ineffassign
go get github.com/fzipp/gocyclo
go get github.com/golang/lint/golint
go get github.com/alexkohler/prealloc
gometalinter:
gometalinter --enable-all ./...
lint:
golint ./...
staticcheck:
staticcheck -ignore "$(shell cat .checkignore)" ./...
gosimple:
gosimple -ignore "$(shell cat .gosimpleignore)" ./...
unused:
unused ./...
ineffassign:
ineffassign .
gocyclo:
gocyclo -over 20 $(shell find . -name "*.go" |egrep -v "_testutils/*|vendor/*|pb\.go|_test\.go")
prealloc:
prealloc ./...
check: staticcheck gosimple ineffassign
fmt:
go fmt ./...
build:
go build ./...
test:
go test -race -v ./...