Skip to content

Commit

Permalink
chore: add nonlint to the right place
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaru Wang committed Aug 7, 2023
1 parent 14d98c5 commit 1354837
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 deletions.
12 changes: 4 additions & 8 deletions x/ccv/consumer/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ import (
"google.golang.org/grpc/status"

Check failure on line 9 in x/ccv/consumer/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
)

//nolint:typecheck
var _ types.QueryServer = Keeper{}
var _ types.QueryServer = Keeper{} //nolint:typecheck

Check failure on line 12 in x/ccv/consumer/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint:typecheck` is unused for linter "typecheck" (nolintlint)

//nolint:typecheck
func (k Keeper) QueryNextFeeDistribution(c context.Context,
func (k Keeper) QueryNextFeeDistribution(c context.Context, //nolint:typecheck

Check failure on line 14 in x/ccv/consumer/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint:typecheck` is unused for linter "typecheck" (nolintlint)
req *types.QueryNextFeeDistributionEstimateRequest,
) (*types.QueryNextFeeDistributionEstimateResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
Expand All @@ -27,8 +25,7 @@ func (k Keeper) QueryNextFeeDistribution(c context.Context,
return &types.QueryNextFeeDistributionEstimateResponse{Data: &nextDist}, nil
}

//nolint:typecheck
func (k Keeper) QueryParams(c context.Context,
func (k Keeper) QueryParams(c context.Context, //nolint:typecheck

Check failure on line 28 in x/ccv/consumer/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint:typecheck` is unused for linter "typecheck" (nolintlint)
req *types.QueryParamsRequest,
) (*types.QueryParamsResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
Expand All @@ -42,8 +39,7 @@ func (k Keeper) QueryParams(c context.Context,
return &types.QueryParamsResponse{Params: p}, nil
}

//nolint:typecheck
func (k Keeper) QueryProviderChainInfo(c context.Context,
func (k Keeper) QueryProviderChainInfo(c context.Context, //nolint:typecheck

Check failure on line 42 in x/ccv/consumer/keeper/grpc_query.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint:typecheck` is unused for linter "typecheck" (nolintlint)
req *types.QueryProviderInfoRequest,
) (*types.QueryProviderInfoResponse, error) {
ctx := sdk.UnwrapSDKContext(c)
Expand Down
6 changes: 2 additions & 4 deletions x/ccv/consumer/keeper/provider_info.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@ package keeper
import (
sdk "github.com/cosmos/cosmos-sdk/types"

Check failure on line 4 in x/ccv/consumer/keeper/provider_info.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)

//nolint:typecheck
ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint"
ibctm "github.com/cosmos/ibc-go/v7/modules/light-clients/07-tendermint" //nolint:typecheck

Check failure on line 6 in x/ccv/consumer/keeper/provider_info.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint:typecheck` is unused for linter "typecheck" (nolintlint)

Check failure on line 7 in x/ccv/consumer/keeper/provider_info.go

View workflow job for this annotation

GitHub Actions / lint

File is not `gci`-ed with --skip-generated -s standard,default,blank,dot,prefix(cosmossdk.io),prefix(github.com/cosmos/cosmos-sdk),prefix(github.com/cometbft/cometbft),prefix(github.com/cosmos/interchain-security) (gci)
"github.com/cosmos/interchain-security/v3/x/ccv/consumer/types"
ccvtypes "github.com/cosmos/interchain-security/v3/x/ccv/types"
)

//nolint:typecheck
func (k Keeper) GetProviderChainInfo(ctx sdk.Context) (*types.QueryProviderInfoResponse, error) {
func (k Keeper) GetProviderChainInfo(ctx sdk.Context) (*types.QueryProviderInfoResponse, error) { //nolint:typecheck

Check failure on line 12 in x/ccv/consumer/keeper/provider_info.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint:typecheck` is unused for linter "typecheck" (nolintlint)
// get the channelID for the channel to the provider.
consumerChannelID, found := k.GetProviderChannel(ctx)
if !found {
Expand Down

0 comments on commit 1354837

Please sign in to comment.