Skip to content

Sd utilize

Sd utilize #302

Triggered via pull request February 26, 2024 14:39
Status Success
Total duration 53s
Artifacts

go.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
Lint: stader-lib/node/validator.go#L22
var-naming: func parameter referralId should be referralID (revive)
Lint: stader-lib/node/validator.go#L42
var-naming: func parameter referralId should be referralID (revive)
Lint: 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)
Lint: 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)
Lint: stader/guardian/collector/network-collector.go#L65
commentFormatting: put a space between `//` and comment text (gocritic)
Lint: stader/guardian/collector/network-collector.go#L154
commentFormatting: put a space between `//` and comment text (gocritic)
Lint: stader-cli/node/claim-sp-rewards.go#L184
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
Lint: stader-cli/node/commands.go#L370
unlambda: replace `func(c *cli.Context) error {
Lint: stader/api/validator/deposit.go#L113
cyclomatic complexity 32 of func `canNodeDeposit` is high (> 30) (gocyclo)
Lint: stader/guardian/collector/operator-collector.go#L146
`positon` is a misspelling of `position` (misspell)