client/cmd/trdl/exec.go

Summary

Maintainability
A
1 hr
Test Coverage
F
10%

Function execCmd has 6 return statements (exceeds 4 allowed).
Open

func execCmd() *cobra.Command {
    cmd := &cobra.Command{
        Use:                   "exec REPO GROUP [CHANNEL] [BINARY_NAME] [--] [ARGS]",
        Short:                 "Exec a software binary",
        DisableFlagsInUseLine: true,
Severity: Major
Found in client/cmd/trdl/exec.go - About 40 mins to fix

    Function processExecArgs has 5 return statements (exceeds 4 allowed).
    Open

    func processExecArgs(cmd *cobra.Command, args []string) (*execCmdData, error) {
        data := &execCmdData{}
    
        data.repoName = args[0]
        data.group = args[1]
    Severity: Major
    Found in client/cmd/trdl/exec.go - About 35 mins to fix

      There are no issues that match your filters.

      Category
      Status