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

@@ -28,7 +28,8 @@ func createTimeoutContext(base context.Context, config *Config) (context.Context
if config != nil && config.CommandTimeout > 0 {
timeout = config.CommandTimeout
}
return context.WithTimeout(base, timeout) // #nosec G118 -- cancel is returned to callers who are responsible for calling it
// #nosec G118 -- cancel is returned to callers who are responsible for calling it
return context.WithTimeout(base, timeout)
}
// IsCI detects if we're running in a CI environment