Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/vet: warn about `break` at end of case/comm clause #16415
Consider this code from golang.org/cl/24975:
The intention was for the
I suspect this isn't actually common enough to warrant a cmd/vet check, but thought it at least deserves an issue for discussion.
See https://github.com/dominikh/go-staticcheck/blob/master/testdata/scoped-break.go for the test cases.