Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Make vet exit the lint script with failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Mario Manno authored and Mario Manno committed Jun 16, 2020
1 parent 772abd2 commit bd688d9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/lint
@@ -1,5 +1,10 @@
#!/bin/bash
set -v

# only vet fails this lint run
set -e
go list ./... | xargs go vet

set +e
go list ./... | xargs golint
staticcheck ./...

0 comments on commit bd688d9

Please sign in to comment.