Skip to content

test: fix and unit tests for query pending cctx within rate limit #3654

test: fix and unit tests for query pending cctx within rate limit

test: fix and unit tests for query pending cctx within rate limit #3654

Triggered via pull request April 22, 2024 14:56
Status Failure
Total duration 4m 6s
Artifacts

sast-linters.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 7 warnings
lint
undefined: fCoinMap)","Severity":"","SourceLines":["\tfungiblekeeper \"github.com/zeta-chain/zetacore/x/fungible/keeper\""],"Replacement":null,"Pos":{"Filename":"app/app.go","Offset":0,"Line":114,"Column":17},"ExpectNoLint":false,"ExpectedNoLintLinter":""}],"Report":{"Linters":[{"Name":"asasalint"},{"Name":"asciicheck"},{"Name":"bidichk"},{"Name":"bodyclose","Enabled":true},{"Name":"containedctx"},{"Name":"contextcheck"},{"Name":"cyclop"},{"Name":"decorder"},{"Name":"deadcode"},{"Name":"depguard"},{"Name":"dogsled","Enabled":true},{"Name":"dupl"},{"Name":"dupword"},{"Name":"durationcheck"},{"Name":"errcheck","Enabled":true,"EnabledByDefault":true},{"Name":"errchkjson"},{"Name":"errname"},{"Name":"errorlint"},{"Name":"execinquery"},{"Name":"exhaustive"},{"Name":"exhaustivestruct"},{"Name":"exhaustruct"},{"Name":"exportloopref"},{"Name":"forbidigo"},{"Name":"forcetypeassert"},{"Name":"funlen"},{"Name":"gci"},{"Name":"ginkgolinter"},{"Name":"gocheckcompilerdirectives"},{"Name":"gochecknoglobals"},{"Name":"gochecknoinits"},{"Name":"gocognit"},{"Name":"goconst","Enabled":true},{"Name":"gocritic"},{"Name":"gocyclo"},{"Name":"godot"},{"Name":"godox"},{"Name":"goerr113"},{"Name":"gofmt"},{"Name":"gofumpt"},{"Name":"goheader"},{"Name":"goimports","Enabled":true},{"Name":"golint"},{"Name":"gomnd"},{"Name":"gomoddirectives"},{"Name":"gomodguard"},{"Name":"goprintffuncname"},{"Name":"gosec","Enabled":true},{"Name":"gosimple","EnabledByDefault":true},{"Name":"gosmopolitan"},{"Name":"govet","Enabled":true,"EnabledByDefault":true},{"Name":"grouper"},{"Name":"ifshort"},{"Name":"importas"},{"Name":"ineffassign","Enabled":true,"EnabledByDefault":true},{"Name":"interfacebloat"},{"Name":"interfacer"},{"Name":"ireturn"},{"Name":"lll"},{"Name":"loggercheck"},{"Name":"maintidx"},{"Name":"makezero"},{"Name":"maligned"},{"Name":"mirror"},{"Name":"misspell","Enabled":true},{"Name":"musttag"},{"Name":"nakedret"},{"Name":"nestif"},{"Name":"nilerr"},{"Name":"nilnil"},{"Name":"nlreturn"},{"Name":"noctx"},{"Name":"nonamedreturns"},{"Name":"nosnakecase"},{"Name":"nosprintfhostport"},{"Name":"paralleltest"},{"Name":"prealloc","Enabled":true},{"Name":"predeclared"},{"Name":"promlinter"},{"Name":"reassign"},{"Name":"revive","Enabled":true},{"Name":"rowserrcheck"},{"Name":"scopelint"},{"Name":"sqlclosecheck"},{"Name":"staticcheck","EnabledByDefault":true},{"Name":"structcheck"},{"Name":"stylecheck","Enabled":true},{"Name":"tagalign"},{"Name":"tagliatelle"},{"Name":"tenv"},{"Name":"testableexamples"},{"Name":"testpackage"},{"Name":"thelper"},{"Name":"tparallel"},{"Name":"typecheck","Enabled":true,"EnabledByDefault":true},{"Name":"unconvert","Enabled":true},{"Name":"unparam"},{"Name":"unused","Enabled":true,"EnabledByDefault":true},{"Name":"usestdlibvars"},{"Name":"varcheck"},{"Name":"varnamelen"},{"Name":"wastedassign"},{"Name":"whitespace"},{"Name":"wrapcheck"},{"Name":"wsl"},{"Name":"zerologlint"},{"Name":"nolintlint"}]}}
lint: x/fungible/keeper/deposits.go#L1
: # github.com/zeta-chain/zetacore/x/fungible/keeper
lint: x/fungible/keeper/foreign_coins.go#L88
foreignCoinMap declared and not used
lint: x/fungible/keeper/foreign_coins.go#L90
undefined: fCoinMap
lint: x/fungible/keeper/foreign_coins.go#L91
undefined: fCoinMap
lint: x/fungible/keeper/foreign_coins.go#L93
undefined: fCoinMap
lint: x/fungible/keeper/foreign_coins.go#L95
undefined: fCoinMap (typecheck)
lint: x/crosschain/keeper/processs_outbound.go#L15
could not import github.com/zeta-chain/zetacore/x/fungible/keeper (-: # github.com/zeta-chain/zetacore/x/fungible/keeper
lint: x/fungible/keeper/foreign_coins.go#L88
foreignCoinMap declared and not used
lint: x/fungible/keeper/foreign_coins.go#L90
undefined: fCoinMap
gosec-cosmos: x/fungible/keeper/foreign_coins.go#L88
foreignCoinMap declared and not used
gosec-cosmos: x/fungible/keeper/foreign_coins.go#L90
undefined: fCoinMap
gosec-cosmos: x/fungible/keeper/foreign_coins.go#L91
undefined: fCoinMap
gosec-cosmos: x/fungible/keeper/foreign_coins.go#L93
undefined: fCoinMap
gosec-cosmos: x/fungible/keeper/foreign_coins.go#L95
undefined: fCoinMap
gosec-cosmos
Process completed with exit code 2.
gosec: x/fungible/keeper/foreign_coins.go#L88
foreignCoinMap declared and not used
gosec: x/fungible/keeper/foreign_coins.go#L90
undefined: fCoinMap
gosec: x/fungible/keeper/foreign_coins.go#L91
undefined: fCoinMap
gosec: x/fungible/keeper/foreign_coins.go#L93
undefined: fCoinMap
gosec: x/fungible/keeper/foreign_coins.go#L95
undefined: fCoinMap
nosec_alert
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/github-script@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v3, golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
gosec-cosmos
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
gosec-cosmos
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
gosec
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v2, actions/setup-go@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
gosec
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/