mirror of https://github.com/matrix-org/gomatrix
Run CI using golangci-lint, Go 1.13.10
This commit is contained in:
parent
408fff5e6a
commit
514d21f030
|
@ -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
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue