Skip to content

Refactor new command #4068

Refactor new command

Refactor new command #4068

Triggered via pull request January 3, 2025 12:29
Status Failure
Total duration 3m 59s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 3 warnings
lint: cmd/new.go#L49
Error return value of `fd.Close` is not checked (errcheck)
lint: cmd/new.go#L66
Error return value of `fmt.Fprintf` is not checked (errcheck)
lint: cmd/new_test.go#L107
File is not `gofumpt`-ed (gofumpt)
lint: cmd/newtemplates/templates.go#L23
MinimalScriptTemplate is a global variable (gochecknoglobals)
lint: cmd/newtemplates/templates.go#L24
ProtocolScriptTemplate is a global variable (gochecknoglobals)
lint: cmd/newtemplates/templates.go#L25
BrowserScriptTemplate is a global variable (gochecknoglobals)
lint: cmd/newtemplates/templates.go#L26
DefaultNewScriptName is a global variable (gochecknoglobals)
lint
issues found
deps
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
lint: cmd/newtemplates/templates.go#L1
package-comments: should have a package comment (revive)
lint: cmd/new.go#L31
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)