Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
4f0d7586
Unverified
Commit
4f0d7586
authored
Apr 19, 2018
by
Carl Bergquist
Committed by
GitHub
Apr 19, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11648 from mjtrangoni/add-gometalinter-circleci
Add gometalinter to CircleCI
parents
89acafd5
3543f1c3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
4 deletions
+24
-4
.circleci/config.yml
+20
-0
pkg/services/alerting/engine.go
+2
-2
pkg/services/alerting/reader.go
+1
-1
pkg/services/sqlstore/migrator/migrations.go
+1
-1
No files found.
.circleci/config.yml
View file @
4f0d7586
...
...
@@ -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
:
...
...
pkg/services/alerting/engine.go
View file @
4f0d7586
...
...
@@ -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
...
...
pkg/services/alerting/reader.go
View file @
4f0d7586
...
...
@@ -16,7 +16,7 @@ type RuleReader interface {
type
DefaultRuleReader
struct
{
sync
.
RWMutex
serverID
string
//
serverID string
serverPosition
int
clusterSize
int
log
log
.
Logger
...
...
pkg/services/sqlstore/migrator/migrations.go
View file @
4f0d7586
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment