Refactor new
command
#4069
Annotations
8 errors and 2 warnings
Run linters:
cmd/new.go#L49
Error return value of `fd.Close` is not checked (errcheck)
|
Run linters:
cmd/new.go#L65
Error return value of `fmt.Fprintf` is not checked (errcheck)
|
Run linters:
cmd/new_test.go#L107
File is not `gofumpt`-ed (gofumpt)
|
Run linters:
cmd/newtemplates/templates.go#L23
MinimalScriptTemplate is a global variable (gochecknoglobals)
|
Run linters:
cmd/newtemplates/templates.go#L24
ProtocolScriptTemplate is a global variable (gochecknoglobals)
|
Run linters:
cmd/newtemplates/templates.go#L25
BrowserScriptTemplate is a global variable (gochecknoglobals)
|
Run linters:
cmd/newtemplates/templates.go#L26
DefaultNewScriptName is a global variable (gochecknoglobals)
|
Run linters
issues found
|
Run linters:
cmd/newtemplates/templates.go#L1
package-comments: should have a package comment (revive)
|
Run linters:
cmd/new.go#L31
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
|
Loading