Refactor new
command
#4064
Annotations
9 errors and 4 warnings
lint:
cmd/cloud_new.go#L50
Error return value of `fd.Close` is not checked (errcheck)
|
lint:
cmd/cloud_new.go#L67
Error return value of `fmt.Fprintf` is not checked (errcheck)
|
lint:
cmd/new.go#L47
Error return value of `fd.Close` is not checked (errcheck)
|
lint:
cmd/new.go#L62
Error return value of `fmt.Fprintf` is not checked (errcheck)
|
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#L29
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
|
lint:
cmd/cloud_new.go#L32
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
|