Skip to content

Chore: refine lint

Chore: refine lint #8

Triggered via pull request September 14, 2023 11:52
@ifoothifooth
synchronize #14
lint
Status Failure
Total duration 1m 39s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

7 errors
lint: cli/util/hook_test.go#L107
File is not `gofmt`-ed with `-s` (gofmt)
lint: upstream/balancer.go#L28
G404: Use of weak random number generator (math/rand instead of crypto/rand) (gosec)
lint: downloader/downloader.go#L525
G402: TLS InsecureSkipVerify may be true. (gosec)
lint: downloader/downloader.go#L538
G402: TLS InsecureSkipVerify may be true. (gosec)
lint: client/client.go#L191
(*Client).buildVas - result 1 (context.CancelFunc) is never used (unparam)
lint: downloader/downloader.go#L219
shadow: declaration of "err" shadows declaration at line 212 (govet)
lint
issues found