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 3e0807d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions .drone.yml
Expand Up @@ -16,6 +16,7 @@ steps:
GOPROXY: https://proxy.golang.org
commands:
- make test
- make staticcheck
when:
event:
- pull_request
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Expand Up @@ -9,6 +9,10 @@ build: deps
install: deps
go install ./...

staticcheck:
GO111MODULE=off go get honnef.co/go/tools/cmd/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 +35,5 @@ coverage: deps
lint \
pretest \
test \
coverage
coverage \
staticcheck

0 comments on commit 3e0807d

Please sign in to comment.