Skip to content

Commit 79eed5a

Browse files
committed
Makefile add golint
1 parent 846074f commit 79eed5a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
1-
all: fmt vet lint test
1+
all: fmt vet golangci-lint golint test
22

3-
check: fmt vet lint
3+
check: fmt vet golangci-lint golint
44

55
fmt:
66
test `go fmt ./... | wc -l` -eq 0
77

88
vet:
99
go vet ./...
1010

11-
lint:
11+
golangci-lint:
1212
golangci-lint run ./...
1313

14+
golint:
15+
test `golint ./... | grep -v 'should not use dot imports' | wc -l` -eq 0
16+
1417
test:
1518
go test -v -race -coverprofile=coverage.txt -covermode=atomic ./...

0 commit comments

Comments
 (0)