mirror of
https://github.com/FlipsideCrypto/dcrd.git
synced 2026-02-06 10:56:47 +00:00
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:
parent
20c9fc9c65
commit
6fcd077696
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user