Skip to content

Commit

Permalink
staticcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-nyt committed Mar 14, 2020
1 parent a2010c8 commit 53dcff0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .drone.yml
Expand Up @@ -15,7 +15,9 @@ steps:
GO111MODULE: on
GOPROXY: https://proxy.golang.org
commands:
- go get honnef.co/go/tools/cmd/staticcheck
- make test
- make staticcheck
when:
event:
- pull_request
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -9,6 +9,9 @@ build: deps
install: deps
go install ./...

staticcheck:
staticcheck ./...

lint: deps
GO111MODULE=off go get golang.org/x/lint/golint
for file in $$(find . -name '*.go' | grep -v '\.pb\.go\|\.pb\.gw\.go\|examples\|pubsub\/aws\/awssub_test\.go' | grep -v 'server\/kit\/kitserver_pb_test\.go'); do \
Expand All @@ -31,4 +34,5 @@ coverage: deps
lint \
pretest \
test \
coverage
coverage \
staticcheck

0 comments on commit 53dcff0

Please sign in to comment.