Skip to content

Update golangci-lint #15

Update golangci-lint

Update golangci-lint #15

Triggered via pull request September 9, 2024 16:46
Status Failure
Total duration 5m 27s
Artifacts

pr-golangci-lint.yaml

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

Annotations

21 errors
lint (hack/tools)
golangci-lint exit with code 5
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_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_privatecluster.go#L116
Error return value of `os.Setenv` is not checked (errcheck)
lint (test): test/e2e/azure_privatecluster.go#L118
Error return value of `os.Setenv` is not checked (errcheck)
lint (test): test/e2e/azure_privatecluster.go#L119
Error return value of `os.Setenv` is not checked (errcheck)
lint (test): test/e2e/azure_test.go#L195
Error return value of `fmt.Fprintf` is not checked (errcheck)
lint (test): test/e2e/azure_test.go#L882
Error return value of `os.Setenv` is not checked (errcheck)
lint (test): test/e2e/azure_test.go#L1031
Error return value of `os.Setenv` is not checked (errcheck)
lint: hack/boilerplate/test/fail.go#L19
whyNoLint: include an explanation for nolint directive (gocritic)
lint: hack/boilerplate/test/pass.go#L17
whyNoLint: include an explanation for nolint directive (gocritic)
lint: util/system/namespace_test.go#L47
os.Setenv() can be replaced by `t.Setenv()` in anonymous function (tenv)
lint: exp/doc.go#L17
whyNoLint: include an explanation for nolint directive (gocritic)
lint: test/e2e/azure_clusterproxy.go#L283
Error return value of `f.Close` is not checked (errcheck)
lint: test/e2e/azure_clusterproxy.go#L285
Error return value of `out.Flush` is not checked (errcheck)
lint: test/e2e/azure_lb.go#L244
Error return value of `resp.Body.Close` is not checked (errcheck)
lint: test/e2e/azure_logcollector.go#L156
Error return value of `f.Close` is not checked (errcheck)
lint: test/e2e/azure_privatecluster.go#L116
Error return value of `os.Setenv` is not checked (errcheck)
lint: test/e2e/azure_privatecluster.go#L118
Error return value of `os.Setenv` is not checked (errcheck)