You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. rhc/rhc-0.2.1/main.go:224: suppressed_error: The error returned by the function "Fprintf(w, "%v\t%v\n", svc, err)" is not explicitly checked.
2. rhc/rhc-0.2.1/main.go:224: remediation: Explicitly check the return error.
# 222| fmt.Fprintln(w, "STEP\tERROR\t")
# 223| for svc, err := range errorMessages {
# 224|-> fmt.Fprintf(w, "%v\t%v\n", svc, err)
# 225| }
# 226| w.Flush()
1. rhc/rhc-0.2.1/main.go:222: suppressed_error: The error returned by the function "Fprintln(w, "STEP\tERROR\t")" is not explicitly checked.
2. rhc/rhc-0.2.1/main.go:222: remediation: Explicitly check the return error.
# 220| fmt.Printf("The following errors were encountered during disconnect:\n\n")
# 221| w := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0)
# 222|-> fmt.Fprintln(w, "STEP\tERROR\t")
# 223| for svc, err := range errorMessages {
# 224| fmt.Fprintf(w, "%v\t%v\n", svc, err)
1. rhc/rhc-0.2.1/insights.go:22: suppressed_error: The error returned by the function "cmd.Run()" is not explicitly checked.
2. rhc/rhc-0.2.1/insights.go:22: remediation: Explicitly check the return error.
# 20| cmd := exec.Command("/usr/bin/insights-client", "--status")
# 21|
# 22|-> _ = cmd.Run()
# 23|
# 24| return cmd.ProcessState.Success()
A covscan check found that
scanner.Scan
is not checked for a return value inmain
.The text was updated successfully, but these errors were encountered: