fix(lint): fix lll violations and additional gosec/prealloc findings

Co-authored-by: ivuorinen <11024+ivuorinen@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-15 14:23:03 +00:00
parent 0cb9da3085
commit e05ac8a895
5 changed files with 16 additions and 10 deletions

View File

@@ -418,6 +418,7 @@ func BenchmarkLogParsing(b *testing.B) {
if err != nil {
b.Fatalf("Failed to read test file: %v", err)
}
// #nosec G703 -- mainLog is constructed from b.TempDir() and a literal string, not user input
if err := os.WriteFile(mainLog, data, 0600); err != nil {
b.Fatalf("Failed to create test log: %v", err)
}