fmts/testdata/staticcheck.in
raw| 1 | test.go:9:9: empty branch (SA9003) |
| 2 | test.go:9:13: identical expressions on the left and right side of the '==' operator (SA4000) |
| 3 | test.go:15:2: should replace loop with y = append(y, x...) (S1011) |
| 4 | test.go:16:7: this result of append is never used, except maybe in other appends (SA4010) |
| 5 | test.go:19:2: Sprintf is a pure function but its return value is ignored (SA4017) |
| 6 | test.go:19:2: the argument is already a string, there's no need to use fmt.Sprintf (S1025) |