stake: Override false positive vet error.

This adds a directive to instruct gometalinter to ignore a false
positive produced by vet.  The code in question intentionally makes use
of the property vet is warning about.
This commit is contained in:
Dave Collins 2018-01-06 19:20:12 -06:00 committed by Dave Collins
parent 20c9fc9c65
commit 6fcd077696
No known key found for this signature in database
GPG Key ID: B8904D9D9C93D1F2
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,9 @@ import (
)
const (
// ptrSize is the number of bytes in a native pointer
// ptrSize is the number of bytes in a native pointer.
//
// nolint: vet
ptrSize = 4 << (^uintptr(0) >> 63)
// staticDepth is the size of the static array to use for keeping track

View File

@ -40,7 +40,7 @@ testrepo () {
--enable=vet \
--enable=gosimple \
--enable=unconvert \
--enable=ineffassign ./... | tee /dev/stderr
--enable=ineffassign "$TESTDIRS"
if [ $? != 0 ]; then
echo 'gometalinter has some complaints'
exit 1