Skip to content

Linting.

Linting. #2

Triggered via push February 16, 2024 00:00
Status Failure
Total duration 16s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 1 warning
lint: cmd/Chapter18/Examples/Example1/example_1_test.go#L70
Error return value is not checked (errcheck)
lint: cmd/Chapter18/Examples/Example1/example_1.go#L24
unreachable: unreachable code (govet)
lint: cmd/Chapter18/Examples/Example1/example_1.go#L41
unreachable: unreachable code (govet)
lint: cmd/Chapter01/Example01.02/ex01.02.go#L24
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: Programs that call Seed and then expect a specific sequence of results from the global random source (using functions such as Int) can be broken when a dependency changes how much it consumes from the global random source. To avoid such breakages, programs that need a specific result sequence should use NewRand(NewSource(seed)) to obtain a random generator that other packages cannot access. (staticcheck)
lint: cmd/Chapter15/Exercise15.06/main_test.go#L27
Error return value of `rsp.Body.Read` is not checked (errcheck)
lint: cmd/Chapter15/Exercise15.06/main_test.go#L4
SA1019: "io/ioutil" has been deprecated since Go 1.19: As of Go 1.16, the same functionality is now provided by package io or package os, and those implementations should be preferred in new code. See the specific function documentation for details. (staticcheck)
lint: cmd/Chapter03/Example03.02/main.go#L12
SA4010: this result of append is never used, except maybe in other appends (staticcheck)
lint: cmd/Chapter14/Activity14.02/server/server.go#L34
Error return value of `wr.Write` is not checked (errcheck)
lint: cmd/Chapter14/Activity14.02/server/server.go#L56
Error return value of `wr.Write` is not checked (errcheck)
lint: cmd/Chapter18/Exercise18.08/main.go#L24
Error return value of `ioutil.WriteFile` is not checked (errcheck)
lint
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: golangci/golangci-lint-action@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.