Skip to content

Add min amount for rate limit #744

Add min amount for rate limit

Add min amount for rate limit #744

Triggered via pull request August 16, 2023 12:38
Status Failure
Total duration 50s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
lint: x/ibc-hooks/client/cli/query.go#L16
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
lint: x/ibc-hooks/keeper/keeper.go#L58
unslice: could simplify senderHash32[:] to senderHash32 (gocritic)
lint: x/ibc-hooks/hooks.go#L17
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint: x/ibc-hooks/hooks.go#L20
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint: x/ibc-hooks/hooks.go#L23
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint: x/ibc-hooks/hooks.go#L34
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint: x/ibc-hooks/hooks.go#L39
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint: x/ibc-hooks/hooks.go#L42
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint: x/ibc-hooks/hooks.go#L45
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint: x/ibc-hooks/hooks.go#L170
File is not `gofumpt`-ed with `-extra` (gofumpt)
lint: x/ratelimit/types/epoch.go#L10
var-declaration: should omit type time.Duration from declaration of var EpochHourPeriod; it will be inferred from the right-hand side (revive)
lint: x/ratelimit/types/epoch.go#L9
var-naming: don't use ALL_CAPS in Go names; use CamelCase (revive)
lint: x/ratelimit/types/msg.go#L201
if-return: redundant if ...; err != nil check, just return error instead. (revive)
lint: x/ratelimit/types/keys.go#L30
var-declaration: should omit type int from declaration of var PendingSendPacketChannelLength; it will be inferred from the right-hand side (revive)
lint: x/ratelimit/types/keys.go#L33
var-naming: func parameter channelId should be channelID (revive)
lint: x/ratelimit/types/msg.go#L247
if-return: redundant if ...; err != nil check, just return error instead. (revive)
lint: x/ratelimit/types/keys.go#L34
var-naming: var channelIdBz should be channelIDBz (revive)
lint: x/ratelimit/keeper/abci.go#L40
increment-decrement: should replace epochInfo.CurrentEpoch += 1 with epochInfo.CurrentEpoch++ (revive)
lint: x/ratelimit/keeper/genesis.go#L19
var-naming: range var pendingPacketId should be pendingPacketID (revive)
lint: x/ratelimit/keeper/grpc_query.go#L16
unused-parameter: parameter 'req' seems to be unused, consider removing or renaming it as _ (revive)