Skip to content

refactor: modernize balance sync worker - remove legacy code, batch UPDATE, structured logging, MT terminology #3265

refactor: modernize balance sync worker - remove legacy code, batch UPDATE, structured logging, MT terminology

refactor: modernize balance sync worker - remove legacy code, batch UPDATE, structured logging, MT terminology #3265

Triggered via pull request April 5, 2026 21:45
Status Failure
Total duration 2m 43s
Artifacts

go-combined-analysis.yml

on: pull_request
Go Analysis  /  Detect Changes
10s
Go Analysis / Detect Changes
Matrix: Go Analysis / tests
Matrix: Go Analysis / build
Matrix: Go Analysis / integration-tests
Matrix: Go Analysis / lint
Matrix: Go Analysis / security
Matrix: Go Analysis / test-determinism
Go Analysis  /  No Go Changes
0s
Go Analysis / No Go Changes
Matrix: Go Analysis / coverage
Go Analysis  /  ...  /  Send Notification
7s
Go Analysis / Notify / Send Notification
Fit to window
Zoom out
Zoom in

Annotations

11 errors
Go Analysis / Lint (midaz-ledger): components/ledger/internal/adapters/http/in/transaction-creation-helpers.go#L670
SA1019: ft.Route is deprecated: passive field kept for backward compatibility. Accepted from client and persisted, but not used in any validation or business logic. Use routeId instead. (staticcheck)
Go Analysis / Lint (midaz-ledger): components/ledger/internal/adapters/http/in/transaction-creation-helpers.go#L618
SA1019: ft.Route is deprecated: passive field kept for backward compatibility. Accepted from client and persisted, but not used in any validation or business logic. Use routeId instead. (staticcheck)
Go Analysis / Lint (midaz-ledger): components/ledger/internal/adapters/http/in/transaction-creation-helpers.go#L535
SA1019: ft.Route is deprecated: passive field kept for backward compatibility. Accepted from client and persisted, but not used in any validation or business logic. Use routeId instead. (staticcheck)
Go Analysis / Lint (midaz-ledger): components/ledger/internal/adapters/http/in/transaction-creation-helpers.go#L483
SA1019: ft.Route is deprecated: passive field kept for backward compatibility. Accepted from client and persisted, but not used in any validation or business logic. Use routeId instead. (staticcheck)
Go Analysis / Lint (midaz-ledger): components/ledger/internal/adapters/http/in/operation-route.go#L199
cyclomatic complexity 19 of func `(*OperationRouteHandler).UpdateOperationRoute` is high (> 18) (gocyclo)
Go Analysis / Lint (midaz-ledger): components/ledger/internal/services/query/validate-accounting-routes.go#L32
cognitive complexity 34 of func `(*UseCase).ValidateAccountingRules` is high (> 30) (gocognit)
Go Analysis / Lint (midaz-ledger): components/ledger/internal/services/command/sync_balances_batch.go#L45
cognitive complexity 45 of func `(*UseCase).SyncBalancesBatch` is high (> 30) (gocognit)
Go Analysis / Lint (midaz-ledger): components/ledger/internal/bootstrap/redis.consumer.go#L247
cognitive complexity 41 of func `(*RedisQueueConsumer).processMessage` is high (> 30) (gocognit)
Go Analysis / Lint (midaz-ledger): components/ledger/internal/bootstrap/config.go#L236
cognitive complexity 106 of func `InitServersWithOptions` is high (> 30) (gocognit)
Go Analysis / Lint (midaz-ledger): components/ledger/internal/adapters/http/in/transaction-creation-helpers.go#L148
cognitive complexity 35 of func `(*TransactionHandler).BuildOperations` is high (> 30) (gocognit)
Go Analysis / Tests (midaz-ledger)
Process completed with exit code 2.