mirror of
https://github.com/grafana/grafana.git
synced 2025-01-02 12:17:01 -06:00
Add goconst to CircleCI
This commit is contained in:
parent
ec4b165b3c
commit
803e716213
@ -83,13 +83,14 @@ jobs:
|
|||||||
- checkout
|
- checkout
|
||||||
- run: 'go get -u github.com/alecthomas/gometalinter'
|
- run: 'go get -u github.com/alecthomas/gometalinter'
|
||||||
- run: 'go get -u github.com/tsenart/deadcode'
|
- run: 'go get -u github.com/tsenart/deadcode'
|
||||||
|
- run: 'go get -u github.com/jgautheron/goconst/cmd/goconst'
|
||||||
- run: 'go get -u github.com/gordonklaus/ineffassign'
|
- run: 'go get -u github.com/gordonklaus/ineffassign'
|
||||||
- run: 'go get -u github.com/opennota/check/cmd/structcheck'
|
- run: 'go get -u github.com/opennota/check/cmd/structcheck'
|
||||||
- run: 'go get -u github.com/mdempsky/unconvert'
|
- run: 'go get -u github.com/mdempsky/unconvert'
|
||||||
- run: 'go get -u github.com/opennota/check/cmd/varcheck'
|
- run: 'go get -u github.com/opennota/check/cmd/varcheck'
|
||||||
- run:
|
- run:
|
||||||
name: run linters
|
name: run linters
|
||||||
command: 'gometalinter --enable-gc --vendor --deadline 10m --disable-all --enable=deadcode --enable=ineffassign --enable=structcheck --enable=unconvert --enable=varcheck ./...'
|
command: 'gometalinter --enable-gc --vendor --deadline 10m --disable-all --enable=deadcode --enable=goconst --enable=ineffassign --enable=structcheck --enable=unconvert --enable=varcheck ./...'
|
||||||
- run:
|
- run:
|
||||||
name: run go vet
|
name: run go vet
|
||||||
command: 'go vet ./pkg/...'
|
command: 'go vet ./pkg/...'
|
||||||
|
Loading…
Reference in New Issue
Block a user