build: address nolintlint errors from new golangci-lint

Signed-off-by: Niels de Vos <ndevos@ibm.com>
This commit is contained in:
Niels de Vos
2023-06-02 10:59:52 +02:00
committed by mergify[bot]
parent 5913ed92fe
commit 81218a69f9
30 changed files with 43 additions and 43 deletions

View File

@ -73,7 +73,7 @@ func (cp *ConnPool) fakeGet(monitors, user, keyfile string) (*rados.Conn, string
return conn, unique, nil
}
// nolint:paralleltest // these tests cannot run in parallel
//nolint:paralleltest // these tests cannot run in parallel
func TestConnPool(t *testing.T) {
cp := NewConnPool(interval, expiry)
defer cp.Destroy()

View File

@ -67,7 +67,7 @@ type ClusterInfo struct {
}
// Expected JSON structure in the passed in config file is,
// nolint:godot // example json content should not contain unwanted dot.
//nolint:godot // example json content should not contain unwanted dot.
/*
[{
"clusterID": "<cluster-id>",

View File

@ -70,7 +70,7 @@ func TryRADOSAborted(opErr error) error {
return opErr
}
// nolint:errorlint // Can't use errors.As() because rados.radosError is private.
//nolint:errorlint // Can't use errors.As() because rados.radosError is private.
errnoErr, ok := radosOpErr.OpError.(interface{ ErrorCode() int })
if !ok {
return opErr

View File

@ -54,7 +54,7 @@ func FromBytes(bs []byte) (RefType, error) {
}
num := RefType(bs[0])
switch num { // nolint:exhaustive // reftype.Unknown is handled in default case.
switch num { //nolint:exhaustive // reftype.Unknown is handled in default case.
case Normal, Mask:
return num, nil
default: