Refactor OG RPC - Superseded #8449
Annotations
10 errors and 12 warnings
golangci-lint:
tools/walletextension/rpcapi/utils.go#L45
cognitive complexity 40 of func `ExecAuthRPC` is high (> 30) (gocognit)
|
golangci-lint:
go/common/gethencoding/geth_encoding.go#L173
`if ok` has complex nested blocks (complexity: 8) (nestif)
|
golangci-lint:
tools/walletextension/rpcapi/transaction_api.go#L95
`if s.we.Config.StoreIncomingTxs` has complex nested blocks (complexity: 6) (nestif)
|
golangci-lint:
tools/walletextension/rpcapi/filter_api.go#L95
searchForAddressInFilterCriteria - result 1 (error) is always nil (unparam)
|
golangci-lint:
tools/walletextension/rpcapi/blockchain_api.go#L80
type `proofList` is unused (unused)
|
golangci-lint:
tools/walletextension/rpcapi/blockchain_api.go#L196
field `we` is unused (unused)
|
golangci-lint:
tools/walletextension/httpapi/user_conn.go#L16
var `upgrader` is unused (unused)
|
golangci-lint:
tools/walletextension/httpapi/user_conn.go#L36
type `userConnWS` is unused (unused)
|
golangci-lint:
tools/walletextension/httpapi/user_conn.go#L80
func `(*userConnWS).ReadRequest` is unused (unused)
|
golangci-lint:
tools/walletextension/httpapi/user_conn.go#L91
func `(*userConnWS).WriteResponse` is unused (unused)
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/setup-go@v4, actions/checkout@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/.
|
Run actions/setup-go@v4
Restore cache failed: Dependencies file is not found in /home/runner/work/go-ten/go-ten. Supported file pattern: go.sum
|
golangci-lint:
tools/walletextension/rpcapi/utils.go#L27
var-naming: var defaultUserId should be defaultUserID (revive)
|
golangci-lint:
tools/walletextension/rpcapi/gw_user.go#L20
var-naming: struct field userId should be userID (revive)
|
golangci-lint:
tools/walletextension/rpcapi/utils.go#L47
var-naming: var userId should be userID (revive)
|
golangci-lint:
tools/walletextension/rpcapi/gw_user.go#L33
var-naming: func parameter userId should be userID (revive)
|
golangci-lint:
tools/walletextension/rpcapi/utils.go#L143
var-naming: func extractUserId should be extractUserID (revive)
|
golangci-lint:
tools/walletextension/rpcapi/utils.go#L146
var-naming: var userId should be userID (revive)
|
golangci-lint:
tools/walletextension/rpcapi/txpool_api.go#L26
unused-parameter: parameter 'addr' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
tools/walletextension/rpcapi/ethereum_api.go#L37
unexported-return: exported method FeeHistory returns unexported type *rpcapi.feeHistoryResult, which can be annoying to use (revive)
|
golangci-lint:
tools/walletextension/rpcapi/debug_api.go#L34
receiver-naming: receiver name s should be consistent with previous receiver name api for DebugAPI (revive)
|
golangci-lint:
tools/walletextension/rpcapi/debug_api.go#L19
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
Loading