Skip to content

Sd utilize

Sd utilize #139

Triggered via pull request December 5, 2023 12:42
Status Success
Total duration 50s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
build: stader-lib/socializing-pool/rewards.go#L26
paramTypeCombine: func(sp *stader.SocializingPoolContractManager, index []*big.Int, amountSd []*big.Int, amountEth []*big.Int, merkleProof [][][32]byte, opts *bind.TransactOpts) (stader.GasInfo, error) could be replaced with func(sp *stader.SocializingPoolContractManager, index, amountSd, amountEth []*big.Int, merkleProof [][][32]byte, opts *bind.TransactOpts) (stader.GasInfo, error) (gocritic)
build: stader-lib/socializing-pool/rewards.go#L30
paramTypeCombine: func(sp *stader.SocializingPoolContractManager, index []*big.Int, amountSd []*big.Int, amountEth []*big.Int, merkleProof [][][32]byte, opts *bind.TransactOpts) (*types.Transaction, error) could be replaced with func(sp *stader.SocializingPoolContractManager, index, amountSd, amountEth []*big.Int, merkleProof [][][32]byte, opts *bind.TransactOpts) (*types.Transaction, error) (gocritic)
build: stader-cli/node/claim-sp-rewards.go#L185
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
build: stader/api/validator/deposit.go#L84
cyclomatic complexity 32 of func `canNodeDeposit` is high (> 30) (gocyclo)
build: stader-cli/node/claim-sp-rewards.go#L184
unnecessary trailing newline (whitespace)
build: stader-cli/node/claim-sp-rewards.go#L148
only one cuddle assignment allowed before if statement (wsl)
build: stader-cli/node/claim-sp-rewards.go#L151
assignments should only be cuddled with other assignments (wsl)
build: stader-cli/node/claim-sp-rewards.go#L153
only one cuddle assignment allowed before if statement (wsl)
build: stader-cli/node/claim-sp-rewards.go#L156
assignments should only be cuddled with other assignments (wsl)
build: stader-cli/node/claim-sp-rewards.go#L145
only one cuddle assignment allowed before range statement (wsl)