Add Golang client for Stellar RPC #618
Annotations
10 errors and 1 warning
golangci-lint:
cmd/stellar-rpc/internal/db/event.go#L118
G115: integer overflow conversion int -> uint32 (gosec)
|
golangci-lint:
cmd/stellar-rpc/internal/methods/get_network.go#L19
unused-parameter: parameter 'request' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint:
cmd/stellar-rpc/internal/methods/simulate_transaction.go#L251
var-declaration: should drop = nil from declaration of var restorePreamble; it is the zero value (revive)
|
golangci-lint:
cmd/stellar-rpc/internal/methods/get_events.go#L103
calculated cyclomatic complexity for function getEvents is 16, max is 15 (cyclop)
|
golangci-lint:
cmd/stellar-rpc/internal/methods/get_latest_ledger_test.go#L96
type assertion must be checked (forcetypeassert)
|
golangci-lint:
cmd/stellar-rpc/internal/methods/get_events_test.go#L161
composites: github.com/stellar/stellar-rpc/protocol.GetEventsResponse struct literal uses unkeyed fields (govet)
|
golangci-lint:
cmd/stellar-rpc/internal/methods/get_events_test.go#L309
composites: github.com/stellar/stellar-rpc/protocol.GetEventsResponse struct literal uses unkeyed fields (govet)
|
golangci-lint:
cmd/stellar-rpc/internal/methods/get_events_test.go#L343
composites: github.com/stellar/stellar-rpc/protocol.GetEventsResponse struct literal uses unkeyed fields (govet)
|
golangci-lint:
cmd/stellar-rpc/internal/methods/get_transaction_test.go#L30
composites: github.com/stellar/stellar-rpc/protocol.GetTransactionRequest struct literal uses unkeyed fields (govet)
|
golangci-lint:
cmd/stellar-rpc/internal/methods/get_transaction_test.go#L33
composites: github.com/stellar/stellar-rpc/protocol.GetTransactionRequest struct literal uses unkeyed fields (govet)
|
golangci-lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|