Skip to content

golangci-lint: Add gocritic #3630

golangci-lint: Add gocritic

golangci-lint: Add gocritic #3630

Triggered via push October 1, 2024 19:00
Status Failure
Total duration 15m 50s
Artifacts

test.yaml

on: push
Matrix: lint
Fit to window
Zoom out
Zoom in

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.