Merge pull request #11648 from mjtrangoni/add-gometalinter-circleci

Add gometalinter to CircleCI
This commit is contained in:
Carl Bergquist 2018-04-19 09:35:21 +02:00 committed by GitHub
commit 4f0d7586ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 24 additions and 4 deletions

View File

@ -17,6 +17,22 @@ jobs:
name: check documentation spelling errors
command: 'codespell -I ./words_to_ignore.txt docs/'
gometalinter:
docker:
- image: circleci/golang:1.10
working_directory: /go/src/github.com/grafana/grafana
steps:
- checkout
- run:
name: install gometalinter tool
command: 'go get -u github.com/alecthomas/gometalinter'
- run:
name: install linters
command: 'gometalinter --install'
- run:
name: run some linters
command: 'gometalinter --vendor --deadline 6m --disable-all --enable=structcheck --enable=unconvert --enable=varcheck ./...'
test-frontend:
docker:
- image: circleci/node:6.11.4
@ -123,6 +139,10 @@ workflows:
filters:
tags:
only: /.*/
- gometalinter:
filters:
tags:
only: /.*/
- build:
filters:
tags:

View File

@ -15,8 +15,8 @@ import (
)
type Engine struct {
execQueue chan *Job
clock clock.Clock
execQueue chan *Job
//clock clock.Clock
ticker *Ticker
scheduler Scheduler
evalHandler EvalHandler

View File

@ -16,7 +16,7 @@ type RuleReader interface {
type DefaultRuleReader struct {
sync.RWMutex
serverID string
//serverID string
serverPosition int
clusterSize int
log log.Logger

View File

@ -179,7 +179,7 @@ type CopyTableDataMigration struct {
targetTable string
sourceCols []string
targetCols []string
colMap map[string]string
//colMap map[string]string
}
func NewCopyTableDataMigration(targetTable string, sourceTable string, colMap map[string]string) *CopyTableDataMigration {