Skip to content

Linting.

Linting. #5

Triggered via push February 16, 2024 01:05
Status Failure
Total duration 19s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: cmd/Chapter06/Exercise06.03/main.go#L14
ineffectual assignment to pay (ineffassign)
lint: cmd/Chapter06/Exercise06.03/main.go#L18
ineffectual assignment to pay (ineffassign)
lint: cmd/Chapter14/Exercise14.04/client/main.go#L7
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/Chapter14/Exercise14.04/server/server.go#L28
Error return value of `w.Write` is not checked (errcheck)
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/Chapter14/Activity14.01/solution/solution.go#L6
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/Chapter18/Activity18.01/a18.01.go#L103
Error return value is not checked (errcheck)
lint: cmd/Chapter18/Examples/Example2/example_2.go#L7
func `listFiles2` is unused (unused)
lint: cmd/Chapter18/Examples/Example2/example_2.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)