mirror of
https://github.com/ivuorinen/f2b.git
synced 2026-03-19 10:02:30 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user