Fixes #3: Mirror tool #24
verify.yml
on: push
Go generate
5s
Lint
46s
Matrix: Tests
Annotations
11 errors
Go generate
Process completed with exit code 1.
|
Lint:
internal/tools/mockmirror-build-fake/main.go#L34
exitAfterDefer: log.Fatal will exit, and `defer func(){...}(...)` will not run (gocritic)
|
Lint:
mirror_create_version.go#L38
badCall: no-op append call, probably missing arguments (gocritic)
|
Lint:
internal/tools/mockmirror-build-fake/main.go#L33
G306: Expect WriteFile permissions to be 0600 or less (gosec)
|
Lint:
internal/tools/mockmirror-build-fake/main.go#L36
G306: Expect WriteFile permissions to be 0600 or less (gosec)
|
Lint:
internal/tools/mockmirror-build-fake/main.go#L88
G306: Expect WriteFile permissions to be 0600 or less (gosec)
|
Lint:
mockmirror/mockmirror.go#L66
G114: Use of net/http serve function that has no support for setting timeouts (gosec)
|
Lint:
mirror_create_version_asset.go#L9
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
mirror_create_version.go#L10
unused-parameter: parameter 'ctx' seems to be unused, consider removing or renaming it as _ (revive)
|
Lint:
mirror_serve_http.go#L61
exporting a pointer for the loop variable ver (exportloopref)
|
Lint:
mirror_serve_http.go#L33
"200" can be replaced by http.StatusOK (usestdlibvars)
|