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

main
drakezhang 2026-08-20 16:49:32 +08:00 committed by lyingbug
parent 4acda533b7
commit adc1ef5443
1 changed files with 3 additions and 1 deletions

View File

@ -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 - "))
}
}