Skip to content

lint: fix the issues golangci-lint v2.14.0 reports on draft-22 - #122

Merged
floatdrop merged 1 commit into
draft-22from
lint-fixes
Oct 20, 2026
Merged

floatdrop merged 1 commit into
draft-22from
lint-fixes

Conversation

@floatdrop

Copy link
Copy Markdown
Owner

The Lint job has failed on every push to draft-22 since 835f6db, so every PR against it inherits the failure. Dependabot's #121 is one example: its dependency bumps are fine.

Nine issues, all introduced in 835f6db..85049b6:

  • golines / goimports (5): wrap four long lines (handler_fanout.go, metrics_test.go, urgency_test.go, datastream_timeout_test.go) and move "bytes" into the stdlib import group in metrics_test.go
  • embeddedstructfieldcheck (2): blank line after the embedded field in prioritizedSendStream (wtconn) and deadlineRecordingSendStream (a test helper)
  • modernize embedlit (1): &prioritizedSendStream{s: s, p: p}, setting the promoted field directly, as Go 1.27 allows
  • revive unused-parameter (1): blockedSendStream.Write([]byte), unnamed like failingWriteStream in the registry tests

No behavior change. The handler_fanout.go edit only re-wraps a line on the per-object path, so I didn't rerun the benchmarks. There's no regression test because the Lint job is itself the check that goes red without this.

Verified locally: golangci-lint v2.14.0 (the version CI pins) reports 0 issues, go build ./... passes, go test -race ./pkg/moqt/session/... ./pkg/relay/... passes, and moqt-reviewer found nothing.

Note: golangci-lint v2.13.x cannot typecheck under go1.27.2 ("export data version 5"), so a stale local install fails every package and hides these issues.

After this merges, @dependabot rebase on #121 should turn it green.

🤖 Generated with Claude Code

The Lint job has failed on every push since 835f6db, and every PR
against draft-22 inherits it (e.g. dependabot #121). Nine issues, all
from 835f6db..85049b6:

- golines/goimports: wrap four long lines; move "bytes" into the
  stdlib import group in metrics_test.go
- embeddedstructfieldcheck: blank line after the embedded field in
  prioritizedSendStream and deadlineRecordingSendStream
- modernize embedlit: set the promoted field directly in
  wrapSendStream's prioritizedSendStream literal
- revive unused-parameter: blockedSendStream.Write ignores its input

No behavior change. Lint-only, so there is no regression test; the
Lint job itself is the check that goes red without this.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@floatdrop
floatdrop merged commit 3976367 into draft-22 Oct 20, 2026
21 of 22 checks passed
@floatdrop
floatdrop deleted the lint-fixes branch October 20, 2026 15:22
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