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
c188a44b
Unverified
Commit
c188a44b
authored
Jan 21, 2019
by
Torkel Ödegaard
Committed by
GitHub
Jan 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14969 from grafana/gotmetalinter-script
Gometalinter changes & megacheck fix
parents
d8430448
829e3024
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
14 deletions
+36
-14
.circleci/config.yml
+3
-14
scripts/gometalinter.sh
+33
-0
No files found.
.circleci/config.yml
View file @
c188a44b
...
...
@@ -81,20 +81,9 @@ jobs:
working_directory
:
/go/src/github.com/grafana/grafana
steps
:
-
checkout
-
run
:
'
go
get
-u
github.com/alecthomas/gometalinter'
-
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
honnef.co/go/tools/cmd/megacheck'
-
run
:
'
go
get
-u
github.com/opennota/check/cmd/structcheck'
-
run
:
'
go
get
-u
github.com/mdempsky/unconvert'
-
run
:
'
go
get
-u
github.com/opennota/check/cmd/varcheck'
-
run
:
name
:
run linters
command
:
'
gometalinter
--enable-gc
--vendor
--deadline
10m
--disable-all
--enable=deadcode
--enable=goconst
--enable=gofmt
--enable=ineffassign
--enable=megacheck
--enable=structcheck
--enable=unconvert
--enable=varcheck
./...'
-
run
:
name
:
run go vet
command
:
'
go
vet
./pkg/...'
-
run
:
name
:
Gometalinter tests
command
:
'
./scripts/gometalinter.sh'
test-frontend
:
docker
:
...
...
scripts/gometalinter.sh
0 → 100755
View file @
c188a44b
#!/bin/bash
function
exit_if_fail
{
command
=
$@
echo
"Executing '
$command
'"
eval
$command
rc
=
$?
if
[
$rc
-ne
0
]
;
then
echo
"'
$command
' returned
$rc
."
exit
$rc
fi
}
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
exit_if_fail gometalinter
--enable-gc
--vendor
--deadline
10m
--disable-all
\
--enable
=
deadcode
\
--enable
=
goconst
\
--enable
=
gofmt
\
--enable
=
ineffassign
\
--enable
=
structcheck
\
--enable
=
unconvert
\
--enable
=
varcheck
\
--enable
=
staticcheck
exit_if_fail go vet ./pkg/...
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