feat: refactor cli parsing #2782
Annotations
10 errors
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L233
Error return value of `file.Close` is not checked (errcheck)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L43
appendAssign: append result not assigned to the same slice (gocritic)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L71
appendAssign: append result not assigned to the same slice (gocritic)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L158
ifElseChain: rewrite if-else to switch statement (gocritic)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L229
G304: Potential file inclusion via variable (gosec)
|
golangci-lint - windows:
cmd/finch/nerdctl.go#L215
increment-decrement: should replace idx += 1 with idx++ (revive)
|
golangci-lint - windows:
cmd/finch/nerdctl.go#L144
unused-parameter: parameter 'args' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint - windows:
cmd/finch/nerdctl.go#L273
unused-parameter: parameter 'cmd' seems to be unused, consider removing or renaming it as _ (revive)
|
golangci-lint - windows:
cmd/finch/nerdctl_remote.go#L173
(*nerdctlCommand).handleEnvFileArg - result 0 (error) is always nil (unparam)
|
golangci-lint - windows:
cmd/finch/nerdctl.go#L79
unnecessary trailing newline (whitespace)
|
Loading