Skip to content

Update golangci-lint and add golangci-lint GitHub workflow #39

Update golangci-lint and add golangci-lint GitHub workflow

Update golangci-lint and add golangci-lint GitHub workflow #39

Triggered via pull request October 3, 2024 18:51
Status Failure
Total duration 2m 54s
Artifacts

pr-golangci-lint.yaml

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

Annotations

20 errors
lint (test): test/e2e/azure_clusterproxy.go#L167
Error return value of `f.Close` is not checked (errcheck)
lint (test): test/e2e/azure_clusterproxy.go#L180
Error return value of `podLogs.Close` is not checked (errcheck)
lint (test): test/e2e/azure_clusterproxy.go#L183
Error return value of `out.Flush` is not checked (errcheck)
lint (test): test/e2e/azure_clusterproxy.go#L283
Error return value of `f.Close` is not checked (errcheck)
lint (test): test/e2e/azure_clusterproxy.go#L285
Error return value of `out.Flush` is not checked (errcheck)
lint (test): test/e2e/azure_clusterproxy.go#L324
Error return value of `f.Close` is not checked (errcheck)
lint (test): test/e2e/azure_clusterproxy.go#L327
Error return value of `out.Flush` is not checked (errcheck)
lint (test): test/e2e/azure_lb.go#L244
Error return value of `resp.Body.Close` is not checked (errcheck)
lint (test): test/e2e/azure_logcollector.go#L156
Error return value of `f.Close` is not checked (errcheck)
lint (test): test/e2e/azure_logcollector.go#L513
Error return value of `resp.Body.Close` is not checked (errcheck)
lint: util/system/namespace_test.go#L48
Error return value of `os.Setenv` is not checked (errcheck)
lint: util/system/namespace_test.go#L49
Error return value of `os.Unsetenv` is not checked (errcheck)
lint: azure/defaults_test.go#L97
Error return value of `fmt.Fprintf` is not checked (errcheck)
lint: azure/defaults_test.go#L117
Error return value of `resp.Body.Close` is not checked (errcheck)
lint: azure/defaults_test.go#L181
Error return value of `fmt.Fprintf` is not checked (errcheck)
lint: azure/defaults_test.go#L199
Error return value of `resp.Body.Close` is not checked (errcheck)
lint: controllers/asosecret_controller_test.go#L40
Error return value of `os.Setenv` is not checked (errcheck)
lint: controllers/asosecret_controller_test.go#L41
Error return value of `os.Setenv` is not checked (errcheck)
lint: controllers/asosecret_controller_test.go#L42
Error return value of `os.Setenv` is not checked (errcheck)
lint: controllers/asosecret_controller_test.go#L43
Error return value of `os.Setenv` is not checked (errcheck)