Skip to content

chore: lint fixes part 5#257

Open
pawbana wants to merge 1 commit intopb/coder-lint-fix4from
pb/coder-lint-fix5
Open

chore: lint fixes part 5#257
pawbana wants to merge 1 commit intopb/coder-lint-fix4from
pb/coder-lint-fix5

Conversation

@pawbana
Copy link
Copy Markdown
Contributor

@pawbana pawbana commented Apr 10, 2026

  • errname (3): UnknownRoute → ErrUnknownRoute; errorResponse → chatCompletionResponseError (chatcompletions); ErrorResponse → messagesResponseError (messages)
  • slog field names (4): "%+v" nested slog.F → direct value; requestPath/upstreamPath → request_path/upstream_path (snake_case)
  • slog message length (5): "failed to flush" → "failed to flush event stream"; "stream failed" → "stream processing failed" (2x); "unknown error" → "unknown stream error encountered" (2x)
  • slog message case (1): "MCP client initialized" → "mcp client initialized"
  • gosec G115 (4): added nolint:gosec for test constant uint32→int32 conversions
  • errcheck (1): explicitly discarded RecordInterceptionEnded return value
  • ineffassign (3): propagated streamCtx.Err() to interceptionErr instead of dead lastErr; added nolint:ineffassign for intentional prompt/promptFound resets

Copy link
Copy Markdown
Contributor Author

pawbana commented Apr 10, 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