diff --git a/container/attributes.go b/container/attributes.go index 062e6240..eb4b0782 100644 --- a/container/attributes.go +++ b/container/attributes.go @@ -24,8 +24,8 @@ const disabledHomomorphicHashingValue = "true" // HomomorphicHashingState returns container's homomorphic // hashing state: -// * true if hashing is enabled; -// * false if hashing is disabled. +// - true if hashing is enabled; +// - false if hashing is disabled. // // All container's attributes must be unique, otherwise behavior // is undefined. diff --git a/container/status.go b/container/status.go index 7f0edc08..499c8558 100644 --- a/container/status.go +++ b/container/status.go @@ -6,8 +6,9 @@ import ( ) // LocalizeFailStatus checks if passed global status.Code is related to container failure and: -// then localizes the code and returns true, -// else leaves the code unchanged and returns false. +// +// then localizes the code and returns true, +// else leaves the code unchanged and returns false. // // Arg must not be nil. func LocalizeFailStatus(c *status.Code) bool { diff --git a/netmap/attributes.go b/netmap/attributes.go index 05f4d4a0..4f69287c 100644 --- a/netmap/attributes.go +++ b/netmap/attributes.go @@ -59,13 +59,13 @@ func subnetAttributeKey(id *refs.SubnetID) string { // Existing subnet attributes are expected to be key-unique, otherwise undefined behavior. // // Does not add (removes existing) attribute if node: -// * disables non-zero subnet; -// * enables zero subnet. +// - disables non-zero subnet; +// - enables zero subnet. // // Attribute key is calculated from ID using format `__NEOFS__SUBNET_%s`. // Attribute Value is: -// * `True` if node enters the subnet; -// * `False`, otherwise. +// - `True` if node enters the subnet; +// - `False`, otherwise. func WriteSubnetInfo(node *NodeInfo, info NodeSubnetInfo) { attrs := node.GetAttributes() diff --git a/object/status.go b/object/status.go index a9a0faa5..e1e96c82 100644 --- a/object/status.go +++ b/object/status.go @@ -6,8 +6,9 @@ import ( ) // LocalizeFailStatus checks if passed global status.Code is related to object failure and: -// then localizes the code and returns true, -// else leaves the code unchanged and returns false. +// +// then localizes the code and returns true, +// else leaves the code unchanged and returns false. // // Arg must not be nil. func LocalizeFailStatus(c *status.Code) bool { diff --git a/refs/convert.go b/refs/convert.go index b6dffe60..e402f50e 100644 --- a/refs/convert.go +++ b/refs/convert.go @@ -283,7 +283,7 @@ func (s *SubnetID) ToGRPCMessage() grpc.Message { // FromGRPCMessage restores Info from grpc.Message. // // Supported types: -// * refs.SubnetID. +// - refs.SubnetID. func (s *SubnetID) FromGRPCMessage(m grpc.Message) error { v, ok := m.(*refs.SubnetID) if !ok { diff --git a/session/status.go b/session/status.go index bbcd3e2a..a6dbfca5 100644 --- a/session/status.go +++ b/session/status.go @@ -6,8 +6,9 @@ import ( ) // LocalizeFailStatus checks if passed global status.Code is related to session failure and: -// then localizes the code and returns true, -// else leaves the code unchanged and returns false. +// +// then localizes the code and returns true, +// else leaves the code unchanged and returns false. // // Arg must not be nil. func LocalizeFailStatus(c *status.Code) bool { diff --git a/session/types.go b/session/types.go index 139bf57a..dfa8c5e8 100644 --- a/session/types.go +++ b/session/types.go @@ -51,6 +51,7 @@ type TokenContext interface { } // Deprecated: use TokenContext instead. +// //nolint:revive type SessionTokenContext = TokenContext @@ -67,6 +68,7 @@ type TokenBody struct { } // Deprecated: use TokenBody instead. +// //nolint:revive type SessionTokenBody = TokenBody @@ -77,6 +79,7 @@ type Token struct { } // Deprecated: use Token instead. +// //nolint:revive type SessionToken = Token diff --git a/status/status.go b/status/status.go index 58d3b22a..f300d5e3 100644 --- a/status/status.go +++ b/status/status.go @@ -84,8 +84,9 @@ func GlobalizeCommonFail(c *Code) { } // LocalizeIfInSection checks if passed global status.Code belongs to the section and: -// then localizes the code and returns true, -// else leaves the code unchanged and returns false. +// +// then localizes the code and returns true, +// else leaves the code unchanged and returns false. // // Arg must not be nil. func LocalizeIfInSection(c *Code, sec uint32) bool { diff --git a/subnet/info.go b/subnet/info.go index 16efb989..952b7e7d 100644 --- a/subnet/info.go +++ b/subnet/info.go @@ -55,7 +55,7 @@ func (x *Info) ToGRPCMessage() grpc.Message { // FromGRPCMessage restores Info from grpc.Message. // // Supported types: -// * subnet.SubnetInfo. +// - subnet.SubnetInfo. func (x *Info) FromGRPCMessage(m grpc.Message) error { v, ok := m.(*subnet.SubnetInfo) if !ok {