mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
23 lines
646 B
Bash
Executable File
23 lines
646 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
go get -u github.com/alecthomas/gometalinter
|
|
go get -u github.com/tsenart/deadcode
|
|
go get -u github.com/jgautheron/goconst/cmd/goconst
|
|
go get -u github.com/gordonklaus/ineffassign
|
|
go get -u github.com/opennota/check/cmd/structcheck
|
|
go get -u github.com/mdempsky/unconvert
|
|
go get -u github.com/opennota/check/cmd/varcheck
|
|
go get -u honnef.co/go/tools/cmd/staticcheck
|
|
|
|
gometalinter --enable-gc --vendor --deadline 10m --disable-all \
|
|
--enable=deadcode \
|
|
--enable=goconst \
|
|
--enable=gofmt \
|
|
--enable=ineffassign \
|
|
--enable=structcheck \
|
|
--enable=unconvert \
|
|
--enable=varcheck \
|
|
--enable=staticcheck
|
|
|
|
go vet ./pkg/...
|