Run CI using golangci-lint, Go 1.13.10

This commit is contained in:
Neil Alexander 2020-05-01 13:09:04 +01:00
parent 408fff5e6a
commit 514d21f030
2 changed files with 24 additions and 5 deletions

21
.golangci.yml Normal file
View File

@ -0,0 +1,21 @@
run:
timeout: 5m
linters:
enable:
- vet
- vetshadow
- typecheck
- deadcode
- gocyclo
- golint
- varcheck
- structcheck
- maligned
- ineffassign
- misspell
- unparam
- goimports
- goconst
- unconvert
- errcheck
- interfacer

View File

@ -1,9 +1,7 @@
language: go language: go
go: go:
- 1.10.x - 1.13.10
install: install:
- go get github.com/golang/lint/golint - go get github.com/golangci/golangci-lint/cmd/golangci-lint@v1.24.0
- go get github.com/fzipp/gocyclo - go build
- go get github.com/client9/misspell/...
- go get github.com/gordonklaus/ineffassign
script: ./hooks/pre-commit script: ./hooks/pre-commit