mirror of
https://github.com/lima-vm/lima.git
synced 2026-10-28 11:44:35 +08:00
errcheck v1.30.0 reports a bare receive from an error channel as an unchecked error. Each receive it flagged waits for a process or server to exit after Lima has stopped or killed it, so the error adds nothing; discard it with "_ = <-ch". But staticcheck's S1005 flags "_ = <-ch" as an unnecessary blank assignment, so each spelling of the discard fails one of the two linters. Disable S1005. It also flags blank identifiers in range loops, such as "for _ = range", but gofmt's simplify step and revive's range rule still catch those. Signed-off-by: Jan Dubois <jan.dubois@suse.com>