build: make TestVet report vet errors#9442
Merged
tamird merged 1 commit intocockroachdb:masterfrom Sep 18, 2016
Merged
Conversation
tamird
reviewed
Sep 17, 2016
build/check-style.sh
Outdated
Contributor
There was a problem hiding this comment.
can you do something like this instead
vet=$(go tool vet -all -shadow -printfuncs Info:1,Infof:1,InfofDepth:2,Warning:1,Warningf:1,WarningfDepth:2,Error:1,Errorf:1,ErrorfDepth:2,Fatal:1,Fatalf:1,FatalfDepth:2,UnimplementedWithIssueErrorf:1 . 2>&1)
! echo $vet | grep ....
Contributor
Author
There was a problem hiding this comment.
A new commit is submitted. Differences with your suggestion:
- use
local vetin stead of 'vet'. - put double quotes around
$vet. Otherwise, embedded newlines will be deleted.
445c068 to
d5b3726
Compare
Contributor
|
LGTM |
Contributor
Author
Contributor
|
Sure! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #9441
This change is