Skip to content

Commit

Permalink
fixes the lint errors regarding leading spaces in //nolint directives
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguezvega committed Aug 5, 2022
1 parent 45da8ac commit f2b774b
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion modules/core/02-client/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ func (msg MsgUpdateClient) UnpackInterfaces(unpacker codectypes.AnyUnpacker) err
}

// NewMsgUpgradeClient creates a new MsgUpgradeClient instance
// nolint: interfacer
//nolint: interfacer
func NewMsgUpgradeClient(clientID string, clientState exported.ClientState, consState exported.ConsensusState,
proofUpgradeClient, proofUpgradeConsState []byte, signer string,
) (*MsgUpgradeClient, error) {
Expand Down
20 changes: 10 additions & 10 deletions modules/core/04-channel/types/msgs.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ var _ sdk.Msg = &MsgChannelOpenInit{}

// NewMsgChannelOpenInit creates a new MsgChannelOpenInit. It sets the counterparty channel
// identifier to be empty.
// nolint:interfacer
//nolint:interfacer
func NewMsgChannelOpenInit(
portID, version string, channelOrder Order, connectionHops []string,
counterpartyPortID string, signer string,
Expand Down Expand Up @@ -64,7 +64,7 @@ var _ sdk.Msg = &MsgChannelOpenTry{}
// NewMsgChannelOpenTry creates a new MsgChannelOpenTry instance
// The version string is deprecated and will be ignored by core IBC.
// It is left as an argument for go API backwards compatibility.
// nolint:interfacer
//nolint:interfacer
func NewMsgChannelOpenTry(
portID, version string, channelOrder Order, connectionHops []string,
counterpartyPortID, counterpartyChannelID, counterpartyVersion string,
Expand Down Expand Up @@ -126,7 +126,7 @@ func (msg MsgChannelOpenTry) GetSigners() []sdk.AccAddress {
var _ sdk.Msg = &MsgChannelOpenAck{}

// NewMsgChannelOpenAck creates a new MsgChannelOpenAck instance
// nolint:interfacer
//nolint:interfacer
func NewMsgChannelOpenAck(
portID, channelID, counterpartyChannelID string, cpv string, proofTry []byte, proofHeight clienttypes.Height,
signer string,
Expand Down Expand Up @@ -178,7 +178,7 @@ func (msg MsgChannelOpenAck) GetSigners() []sdk.AccAddress {
var _ sdk.Msg = &MsgChannelOpenConfirm{}

// NewMsgChannelOpenConfirm creates a new MsgChannelOpenConfirm instance
// nolint:interfacer
//nolint:interfacer
func NewMsgChannelOpenConfirm(
portID, channelID string, proofAck []byte, proofHeight clienttypes.Height,
signer string,
Expand Down Expand Up @@ -225,7 +225,7 @@ func (msg MsgChannelOpenConfirm) GetSigners() []sdk.AccAddress {
var _ sdk.Msg = &MsgChannelCloseInit{}

// NewMsgChannelCloseInit creates a new MsgChannelCloseInit instance
// nolint:interfacer
//nolint:interfacer
func NewMsgChannelCloseInit(
portID string, channelID string, signer string,
) *MsgChannelCloseInit {
Expand Down Expand Up @@ -263,7 +263,7 @@ func (msg MsgChannelCloseInit) GetSigners() []sdk.AccAddress {
var _ sdk.Msg = &MsgChannelCloseConfirm{}

// NewMsgChannelCloseConfirm creates a new MsgChannelCloseConfirm instance
// nolint:interfacer
//nolint:interfacer
func NewMsgChannelCloseConfirm(
portID, channelID string, proofInit []byte, proofHeight clienttypes.Height,
signer string,
Expand Down Expand Up @@ -310,7 +310,7 @@ func (msg MsgChannelCloseConfirm) GetSigners() []sdk.AccAddress {
var _ sdk.Msg = &MsgRecvPacket{}

// NewMsgRecvPacket constructs new MsgRecvPacket
// nolint:interfacer
//nolint:interfacer
func NewMsgRecvPacket(
packet Packet, proofCommitment []byte, proofHeight clienttypes.Height,
signer string,
Expand Down Expand Up @@ -357,7 +357,7 @@ func (msg MsgRecvPacket) GetSigners() []sdk.AccAddress {
var _ sdk.Msg = &MsgTimeout{}

// NewMsgTimeout constructs new MsgTimeout
// nolint:interfacer
//nolint:interfacer
func NewMsgTimeout(
packet Packet, nextSequenceRecv uint64, proofUnreceived []byte,
proofHeight clienttypes.Height, signer string,
Expand Down Expand Up @@ -399,7 +399,7 @@ func (msg MsgTimeout) GetSigners() []sdk.AccAddress {
}

// NewMsgTimeoutOnClose constructs new MsgTimeoutOnClose
// nolint:interfacer
//nolint:interfacer
func NewMsgTimeoutOnClose(
packet Packet, nextSequenceRecv uint64,
proofUnreceived, proofClose []byte,
Expand Down Expand Up @@ -448,7 +448,7 @@ func (msg MsgTimeoutOnClose) GetSigners() []sdk.AccAddress {
var _ sdk.Msg = &MsgAcknowledgement{}

// NewMsgAcknowledgement constructs a new MsgAcknowledgement
// nolint:interfacer
//nolint:interfacer
func NewMsgAcknowledgement(
packet Packet,
ack, proofAcked []byte,
Expand Down
16 changes: 8 additions & 8 deletions modules/light-clients/06-solomachine/types/proof.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func ClientStateSignBytes(
// SignBytes.
func ClientStateDataBytes(
cdc codec.BinaryCodec,
path commitmenttypes.MerklePath, // nolint: interfacer
path commitmenttypes.MerklePath, //nolint:interfacer
clientState exported.ClientState,
) ([]byte, error) {
any, err := clienttypes.PackClientState(clientState)
Expand Down Expand Up @@ -173,7 +173,7 @@ func ConsensusStateSignBytes(
// SignBytes.
func ConsensusStateDataBytes(
cdc codec.BinaryCodec,
path commitmenttypes.MerklePath, // nolint: interfacer
path commitmenttypes.MerklePath, //nolint:interfacer
consensusState exported.ConsensusState,
) ([]byte, error) {
any, err := clienttypes.PackConsensusState(consensusState)
Expand Down Expand Up @@ -223,7 +223,7 @@ func ConnectionStateSignBytes(
// SignBytes.
func ConnectionStateDataBytes(
cdc codec.BinaryCodec,
path commitmenttypes.MerklePath, // nolint: interfacer
path commitmenttypes.MerklePath, //nolint:interfacer
connectionEnd exported.ConnectionI,
) ([]byte, error) {
connection, ok := connectionEnd.(connectiontypes.ConnectionEnd)
Expand Down Expand Up @@ -276,7 +276,7 @@ func ChannelStateSignBytes(
// SignBytes.
func ChannelStateDataBytes(
cdc codec.BinaryCodec,
path commitmenttypes.MerklePath, // nolint: interfacer
path commitmenttypes.MerklePath, //nolint:interfacer
channelEnd exported.ChannelI,
) ([]byte, error) {
channel, ok := channelEnd.(channeltypes.Channel)
Expand Down Expand Up @@ -328,7 +328,7 @@ func PacketCommitmentSignBytes(
// SignBytes.
func PacketCommitmentDataBytes(
cdc codec.BinaryCodec,
path commitmenttypes.MerklePath, // nolint: interfacer
path commitmenttypes.MerklePath, //nolint:interfacer
commitmentBytes []byte,
) ([]byte, error) {
data := &PacketCommitmentData{
Expand Down Expand Up @@ -373,7 +373,7 @@ func PacketAcknowledgementSignBytes(
// SignBytes.
func PacketAcknowledgementDataBytes(
cdc codec.BinaryCodec,
path commitmenttypes.MerklePath, // nolint: interfacer
path commitmenttypes.MerklePath, //nolint:interfacer
acknowledgement []byte,
) ([]byte, error) {
data := &PacketAcknowledgementData{
Expand Down Expand Up @@ -417,7 +417,7 @@ func PacketReceiptAbsenceSignBytes(
// used in constructing SignBytes.
func PacketReceiptAbsenceDataBytes(
cdc codec.BinaryCodec,
path commitmenttypes.MerklePath, // nolint: interfacer
path commitmenttypes.MerklePath, //nolint:interfacer
) ([]byte, error) {
data := &PacketReceiptAbsenceData{
Path: []byte(path.String()),
Expand Down Expand Up @@ -460,7 +460,7 @@ func NextSequenceRecvSignBytes(
// SignBytes.
func NextSequenceRecvDataBytes(
cdc codec.BinaryCodec,
path commitmenttypes.MerklePath, // nolint: interfacer
path commitmenttypes.MerklePath, //nolint:interfacer
nextSequenceRecv uint64,
) ([]byte, error) {
data := &NextSequenceRecvData{
Expand Down

0 comments on commit f2b774b

Please sign in to comment.