Skip to content

fix(lint): rf/store test compile break + datagram/gosec/gofmt - #4235

Merged
0pcom merged 1 commit into
skycoin:developfrom
0pcom:fix-lint-debt
Aug 26, 2026
Merged

fix(lint): rf/store test compile break + datagram/gosec/gofmt#4235
0pcom merged 1 commit into
skycoin:developfrom
0pcom:fix-lint-debt

Conversation

@0pcom

@0pcom 0pcom commented Aug 26, 2026

Copy link
Copy Markdown
Collaborator

Clears CI lint/compile failures found by a full-repo golangci-lint run ./...:

  • pkg/deployment/rf/store — the test mockStore was missing GetTransportSummary, so the package test binary failed to compile (a CI-blocking typecheck failure). Added the method.
  • datagram_route_group.go SA4023 — dropped the always-true want != nil (RemoteAddr never returns a nil interface).
  • init.go — justified //nolint:gosec on the dmsg-server shuffle (non-crypto load distribution).
  • gofmt on reorder_test.go.

A follow-up PR will clear the remaining unrelated lint debt (errcheck/misspell/staticcheck/unparam). Developed with AI assistance (Claude).

… gosec/gofmt

- pkg/deployment/rf/store test mockStore was missing GetTransportSummary, so the
  package's test binary failed to COMPILE (CI-blocking typecheck failure) — add it.
- datagram_route_group SA4023: drop the always-true 'want != nil' (RemoteAddr
  never returns a nil interface).
- init.go dmsg-server shuffle: justified //nolint:gosec (non-crypto load shuffle).
- gofmt reorder_test.go.
@0pcom
0pcom merged commit 709755b into skycoin:develop Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant