Skip to content

merge: from dev to master #3

merge: from dev to master

merge: from dev to master #3

Triggered via pull request September 19, 2024 11:35
@fit2botfit2bot
opened #358
dev
Status Failure
Total duration 1m 26s
Artifacts

golangci-lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors
lint: pkg/jms-sdk-go/httplib/client.go#L10
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: main.go#L235
S1012: should use `time.Since` instead of `time.Now().Sub` (gosimple)
lint: pkg/common/random.go#L11
SA1019: rand.Seed has been deprecated since Go 1.20 and an alternative has been available since Go 1.0: As of Go 1.20 there is no reason to call Seed with a random value. Programs that call Seed with a known value to get a specific sequence of results should use New(NewSource(seed)) to obtain a local random generator. (staticcheck)
lint: pkg/tunnel/stream_output.go#L81
Error return value of `stream.recorder.RecordWrite` is not checked (errcheck)
lint: pkg/tunnel/cache_remote.go#L152
field `roomLock` is unused (unused)
lint: pkg/tunnel/cache_remote.go#L153
field `remoteRooms` is unused (unused)
lint: pkg/tunnel/conn.go#L185
S1012: should use `time.Since` instead of `time.Now().Sub` (gosimple)
lint: pkg/jms-sdk-go/service/videoworker/video_worker.go#L38
field `sign` is unused (unused)
lint: pkg/jms-sdk-go/service/videoworker/video_worker.go#L41
field `cacheToken` is unused (unused)
lint: pkg/jms-sdk-go/service/videoworker/video_worker.go#L89
S1034: assigning the result of this type assertion to a variable (switch interValue := interValue.(type)) could eliminate type assertions in switch cases (gosimple)