From e84775a116c22b391ef052bb686ba0760d7808a9 Mon Sep 17 00:00:00 2001 From: harry <53987565+h5law@users.noreply.github.com> Date: Tue, 18 Jul 2023 23:55:40 +0100 Subject: [PATCH] Add nolint lines for unused types --- ibc/client/types/client.go | 4 ++++ ibc/client/types/update.go | 3 +++ ibc/client/types/upgrade.go | 2 ++ 3 files changed, 9 insertions(+) diff --git a/ibc/client/types/client.go b/ibc/client/types/client.go index fb74383f1..27cb74171 100644 --- a/ibc/client/types/client.go +++ b/ibc/client/types/client.go @@ -38,6 +38,7 @@ func (cs *ClientState) Validate() error { return nil } +//nolint:unused // types defined for future use type ( statusInnerPayload struct{} statusPayload struct { @@ -94,6 +95,7 @@ func (cs *ClientState) Initialise(clientStore modules.ProvableStore, consensusSt return nil } +//nolint:unused // types defined for future use type ( verifyMembershipInnerPayload struct { Height modules.Height `json:"height"` @@ -146,6 +148,7 @@ func (cs *ClientState) VerifyMembership( return nil } +//nolint:unused // types defined for future use type ( verifyNonMembershipInnerPayload struct { Height modules.Height `json:"height"` @@ -196,6 +199,7 @@ func (cs *ClientState) VerifyNonMembership( return nil } +//nolint:unused // types defined for future use type ( checkForMisbehaviourInnerPayload struct { ClientMessage clientMessage `json:"client_message"` diff --git a/ibc/client/types/update.go b/ibc/client/types/update.go index a9349d211..1fefaea0a 100644 --- a/ibc/client/types/update.go +++ b/ibc/client/types/update.go @@ -4,6 +4,7 @@ import ( "github.com/pokt-network/pocket/shared/modules" ) +//nolint:unused // types defined for future use type ( clientMessage struct { Header *Header `json:"header,omitempty"` @@ -48,6 +49,7 @@ func (cs *ClientState) VerifyClientMessage(clientStore modules.ProvableStore, cl return nil } +//nolint:unused // types defined for future use type ( updateStateInnerPayload struct { ClientMessage clientMessage `json:"client_message"` @@ -83,6 +85,7 @@ func (cs *ClientState) UpdateState(clientStore modules.ProvableStore, clientMsg return clientMsg.(*Header).Height, nil } +//nolint:unused // types defined for future use type ( updateStateOnMisbehaviourInnerPayload struct { ClientMessage clientMessage `json:"client_message"` diff --git a/ibc/client/types/upgrade.go b/ibc/client/types/upgrade.go index d8ab9015b..9f89e06da 100644 --- a/ibc/client/types/upgrade.go +++ b/ibc/client/types/upgrade.go @@ -6,6 +6,7 @@ import ( "github.com/pokt-network/pocket/shared/modules" ) +//nolint:unused // types defined for future use type ( verifyUpgradeAndUpdateStateInnerPayload struct { UpgradeClientState modules.ClientState `json:"upgrade_client_state"` @@ -26,6 +27,7 @@ func (cs *ClientState) VerifyUpgradeAndUpdateState( upgradedConsState modules.ConsensusState, proofUpgradeClient, proofUpgradeConsState []byte, ) error { + //nolint:gocritic // Commented out code is for future us /* wasmUpgradeClientState, ok := upgradedClient.(*ClientState) if !ok {