Skip to content

Commit 2200106

Browse files
committed
Travis CI: Add golangci-lint
1 parent 9a1c978 commit 2200106

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@ go:
77
env:
88
- GO111MODULE=on
99

10+
install:
11+
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $GOPATH/bin v1.12.3
12+
1013
script:
14+
- golangci-lint run -E megacheck,deadcode,typecheck,govet,misspell,prealloc,gofmt,gocyclo,goconst,dupl,unconvert,interfacer,unparam
1115
- go test -race -coverprofile=coverage.txt -covermode=atomic ./...
1216

1317
after_success:

0 commit comments

Comments
 (0)