Skip to content

Open-source LLM knowledge platform: turn raw documents into a queryable RAG, an autonomous reasoning agent, and a self-maintaining Wiki.

fix(cli): wrap overlong t.Errorf so golangci-lint lll passes

drakezhangadc1ef5443b4
diff --git a/cli/internal/cmdutil/errors_doc_test.go b/cli/internal/cmdutil/errors_doc_test.go
index 6271bf52d..32ffa40aa 100644
--- a/cli/internal/cmdutil/errors_doc_test.go
+++ b/cli/internal/cmdutil/errors_doc_test.go
@@ -108,7 +108,9 @@ func TestDocumentedCodes_RegisteredInAllCodes(t *testing.T) {
}
}
if len(stale) > 0 {
- t.Errorf("the following error codes are documented in cli/AGENTS.md \"Error code reference\" but are not registered in AllCodes():\n - %s\n\nDrop the row if the code was removed, or register the code if the row is correct.",
+ t.Errorf("the following error codes are documented in cli/AGENTS.md "+
+ "\"Error code reference\" but are not registered in AllCodes():\n - %s\n\n"+
+ "Drop the row if the code was removed, or register the code if the row is correct.",
strings.Join(stale, "\n - "))
}
}