concourse / concourse

Printf with dynamic first argument and no further arguments SCC-SA1006
Bug risk
Major
4 months ago4 years old
printf-style function with dynamic format string and no further arguments should use print-style function instead
 97		}
 98
 99		paddingSize := widths[i] - len(column.Contents)
100		_, err = fmt.Fprintf(dst, strings.Repeat(" ", paddingSize))101		if err != nil {
102			return err
103		}
printf-style function with dynamic format string and no further arguments should use print-style function instead
47			}
48		}
49		if workersNames == nil {
50			fmt.Printf(ui.WarningColor("WARNING: No stalled workers found.\n"))51		}
52	}
53