From 91efd1f09215b8cb3d539ae2abc572b79fae5199 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Mon, 16 Aug 2021 11:11:16 -0400 Subject: [PATCH] rados: naming conventions: disable revive naming check on old struct This struct has public fields that violate standard naming conventions. Disable the check on this struct only. Signed-off-by: John Mulligan --- rados/ioctx.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rados/ioctx.go b/rados/ioctx.go index f59455d..f052519 100644 --- a/rados/ioctx.go +++ b/rados/ioctx.go @@ -45,6 +45,8 @@ const ( CreateIdempotent = C.LIBRADOS_CREATE_IDEMPOTENT ) +//revive:disable:var-naming old-yet-exported public api + // PoolStat represents Ceph pool statistics. type PoolStat struct { // space used in bytes @@ -69,6 +71,8 @@ type PoolStat struct { Num_wr_kb uint64 } +//revive:enable:var-naming + // ObjectStat represents an object stat information type ObjectStat struct { // current length in bytes