commands/root.go
Function runCommand
has 55 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func runCommand(cmd *cobra.Command, args []string) error {
if ok, _ := cmd.Flags().GetBool("version"); ok {
executeVersionCmd()
return nil
} else if len(args) == 0 {
Function runCommand
has 5 return statements (exceeds 4 allowed). Wontfix
Wontfix
func runCommand(cmd *cobra.Command, args []string) error {
if ok, _ := cmd.Flags().GetBool("version"); ok {
executeVersionCmd()
return nil
} else if len(args) == 0 {