From c80560348e672a4bcf83b3074d1e937be61442a6 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Sat, 28 Mar 2026 15:24:31 +0000 Subject: [PATCH] fix: resolve golines formatting issues in provider test and config Breaks down long lines in pkg/providers/anthropic_messages/provider_test.go and re-aligns struct tags in pkg/config/config.go to satisfy the golines linter which caused a CI failure. Co-authored-by: TanLuong <28281768+TanLuong@users.noreply.github.com> --- pkg/config/config.go | 8 ++++---- pkg/providers/anthropic_messages/provider_test.go | 6 +++++- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/pkg/config/config.go b/pkg/config/config.go index 3b558d780..c1a48974f 100644 --- a/pkg/config/config.go +++ b/pkg/config/config.go @@ -1048,10 +1048,10 @@ type SearXNGConfig struct { } type GLMSearchConfig struct { - Enabled bool `json:"enabled" env:"PICOCLAW_TOOLS_WEB_GLM_ENABLED"` - apiKey string - secDirty bool - BaseURL string `json:"base_url" env:"PICOCLAW_TOOLS_WEB_GLM_BASE_URL"` + Enabled bool `json:"enabled" env:"PICOCLAW_TOOLS_WEB_GLM_ENABLED"` + apiKey string + secDirty bool + BaseURL string `json:"base_url" env:"PICOCLAW_TOOLS_WEB_GLM_BASE_URL"` // SearchEngine specifies the search backend: "search_std" (default), // "search_pro", "search_pro_sogou", or "search_pro_quark". SearchEngine string `json:"search_engine" env:"PICOCLAW_TOOLS_WEB_GLM_SEARCH_ENGINE"` diff --git a/pkg/providers/anthropic_messages/provider_test.go b/pkg/providers/anthropic_messages/provider_test.go index 09ba1942b..153843bb1 100644 --- a/pkg/providers/anthropic_messages/provider_test.go +++ b/pkg/providers/anthropic_messages/provider_test.go @@ -584,7 +584,11 @@ func TestBuildRequestBodyEdgeCases(t *testing.T) { t.Fatalf("messages is not []any") } if len(messages) != 3 { - t.Fatalf("expected 3 API messages (user, assistant with text, assistant with tool_use), got %d: %#v", len(messages), messages) + t.Fatalf( + "expected 3 API messages (user, assistant with text, assistant with tool_use), got %d: %#v", + len(messages), + messages, + ) } } })