| Josh Bleecher Snyder | de5f744 | 2025-05-15 18:32:32 +0000 | [diff] [blame] | 1 | Test that gopls/vet diagnostic checks for redundant newlines are completely filtered out with no errors reported |
| 2 | |||||
| 3 | See https://github.com/boldsoftware/sketch/issues/95 and https://github.com/golang/go/issues/57059 | ||||
| 4 | |||||
| 5 | -- p.go -- | ||||
| 6 | package p | ||||
| 7 | |||||
| 8 | -- .commit -- | ||||
| 9 | Initial commit | ||||
| 10 | |||||
| 11 | -- p.go -- | ||||
| 12 | package p | ||||
| 13 | |||||
| 14 | import "fmt" | ||||
| 15 | |||||
| 16 | func F() { | ||||
| 17 | fmt.Println("abc\n") | ||||
| 18 | } | ||||
| 19 | |||||
| 20 | -- .commit -- | ||||
| 21 | Add file with redundant newline error | ||||
| 22 | |||||
| 23 | -- .run_test -- | ||||
| 24 | OK | ||||