Skip to content

feat: add rebalance. #1568

feat: add rebalance.

feat: add rebalance. #1568

Triggered via pull request November 21, 2023 07:37
Status Failure
Total duration 28s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
lint: x/liquidstakeibc/keeper/rebalance.go#L139
ifElseChain: rewrite if-else to switch statement (gocritic)
lint: x/liquidstakeibc/keeper/abci.go#L378
File is not `gofmt`-ed with `-s` (gofmt)
lint: x/liquidstakeibc/keeper/rebalance.go#L67
File is not `gofmt`-ed with `-s` (gofmt)
lint: x/liquidstakeibc/keeper/rebalance.go#L137
exported method SortDelegationListAsc returns unexported type []github.com/persistenceOne/pstake-native/v2/x/liquidstakeibc/keeper.delegation, which can be annoying to use (golint)
lint: x/liquidstakeibc/keeper/rebalance.go#L146
`if` block ends with a `return` statement, so drop this `else` and outdent its block (golint)
lint
issues found