Sd utilize #250
Annotations
10 errors and 4 warnings
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#L184
elseif: can replace 'else {if cond {}}' with 'else if cond {}' (gocritic)
|
build:
stader-cli/node/commands.go#L370
unlambda: replace `func(c *cli.Context) error {
|
build:
stader/api/validator/deposit.go#L113
cyclomatic complexity 32 of func `canNodeDeposit` is high (> 30) (gocyclo)
|
build:
stader/guardian/collector/network-collector.go#L154
`positon` is a misspelling of `position` (misspell)
|
build:
stader/guardian/collector/operator-collector.go#L205
unnecessary conversion (unconvert)
|
build:
stader/guardian/collector/operator-collector.go#L206
unnecessary conversion (unconvert)
|
build:
stader-lib/utils/sd/sd.go#L19
func `almostEqual` is unused (unused)
|
build:
stader-cli/node/repay-sd.go#L137
unnecessary leading newline (whitespace)
|
build:
stader-lib/node/validator.go#L22
var-naming: func parameter referralId should be referralID (revive)
|
build:
stader-lib/node/validator.go#L42
var-naming: func parameter referralId should be referralID (revive)
|
build:
stader/api/node/utility-sd.go#L42
var-naming: var operatorId should be operatorID (revive)
|
build:
stader/api/node/claim-rewards.go#L100
var-naming: var operatorId should be operatorID (revive)
|