Sd utilize #268
Annotations
10 errors and 4 warnings
build:
stader-lib/utils/eth/units.go#L41
assignments should only be cuddled with other assignments (wsl)
|
build:
stader-lib/utils/eth/units.go#L42
only one cuddle assignment allowed before if statement (wsl)
|
build:
stader-lib/utils/eth/units.go#L49
if statements should only be cuddled with assignments (wsl)
|
build:
stader-lib/utils/eth/units.go#L52
return statements should not be cuddled if block has more than two lines (wsl)
|
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-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-lib/sdutility/sd-utility.go#L110
unused-parameter: parameter 'opts' seems to be unused, consider removing or renaming it as _ (revive)
|
build:
stader-lib/sdutility/sd-utility.go#L22
assignments should only be cuddled with other assignments (wsl)
|
build
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, 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/.
|
build:
stader/api/node/utility-sd.go#L42
var-naming: var operatorId should be operatorID (revive)
|
build:
stader/api/node/claim-rewards.go#L38
var-naming: var operatorId should be operatorID (revive)
|
build:
stader/api/node/claim-rewards.go#L121
var-naming: var operatorId should be operatorID (revive)
|