golangci-lint: Add gocritic #3630
Annotations
8 errors
test
Process completed with exit code 1.
|
lint (windows-latest):
src/go/rdctl/pkg/snapshot/snapshotter_windows.go#L76
The copy of the 'for' variable "distro" can be deleted (Go 1.22+) (copyloopvar)
|
lint (windows-latest):
src/go/rdctl/pkg/snapshot/snapshotter_windows.go#L122
The copy of the 'for' variable "distro" can be deleted (Go 1.22+) (copyloopvar)
|
lint (windows-latest):
src/go/wsl-helper/pkg/wsl-utils/version_windows_test.go#L106
The copy of the 'for' variable "input" can be deleted (Go 1.22+) (copyloopvar)
|
lint (windows-latest):
src/go/wsl-helper/pkg/wsl-utils/version_windows_test.go#L178
The copy of the 'for' variable "name" can be deleted (Go 1.22+) (copyloopvar)
|
lint (windows-latest):
src/go/wsl-helper/pkg/wsl-utils/version_windows_test.go#L179
The copy of the 'for' variable "input" can be deleted (Go 1.22+) (copyloopvar)
|
lint (windows-latest):
src/go/wsl-helper/pkg/dockerproxy/serve.go#L133
SA1029: should not use empty anonymous struct as key for value; define your own type to avoid collisions (staticcheck)
|
lint (windows-latest)
Process completed with exit code 1.
|