Skip to content

Add Golang client for Stellar RPC #632

Add Golang client for Stellar RPC

Add Golang client for Stellar RPC #632

Triggered via pull request January 28, 2025 21:15
Status Failure
Total duration 1m 4s
Artifacts

golang.yml

on: pull_request
golangci-lint
54s
golangci-lint
Fit to window
Zoom out
Zoom in

Annotations

10 errors
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#L102
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)