Skip to content

Add Golang client for Stellar RPC #615

Add Golang client for Stellar RPC

Add Golang client for Stellar RPC #615

Triggered via pull request January 22, 2025 13:34
Status Failure
Total duration 5m 1s
Artifacts

golang.yml

on: pull_request
Fit to window
Zoom out
Zoom in

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/integrationtest/get_ledger_entries_test.go#L62
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
golangci-lint: cmd/stellar-rpc/internal/integrationtest/get_ledger_entries_test.go#L63
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
golangci-lint: cmd/stellar-rpc/internal/integrationtest/transaction_test.go#L198
type assertion on error will fail on wrapped errors. Use errors.As to check for specific errors (errorlint)
golangci-lint: cmd/stellar-rpc/internal/methods/get_latest_ledger_test.go#L96
type assertion must be checked (forcetypeassert)
golangci-lint: protocol/get_events_test.go#L189
Function 'TestTopicFilterMatches' is too long (160 > 100) (funlen)
golangci-lint: protocol/get_events_test.go#L393
Function 'TestGetEventsRequestValid' is too long (116 > 100) (funlen)
golangci-lint
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636