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

Commit

Permalink
chore: add golangci lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vicanso committed Apr 25, 2020
1 parent 24960d8 commit 290a639
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
language: go
sudo: required

go:
- 1.x

install:
- go get github.com/golang/lint/golint
- "1.12"
- "1.13"
- "1.14"
- master

script:
- go test -race -cover ./

after_script:
- golint ./
- curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin latest
- make test && make bench
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

.PHONY: default test test-cover dev

lint:
golangci-lint run

# for test
test:
Expand Down

0 comments on commit 290a639

Please sign in to comment.