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
One of the requirements for a vet check is correctness.
Currently, the vet tool has a check for trailing "\n" in fmt.Println. It doesn't seem like this is a matter of correctness, but rather of style. Should this check be moved from vet to lint?
I would like to leave it in, under the unwritten "venerable" criterion. It fits in well with the existing Printf checks, some others of which are also arguably less clearly wrong. But in practice, it does find errors, at least in my experience.
One of the requirements for a vet check is correctness.
Currently, the vet tool has a check for trailing "\n" in
fmt.Println
. It doesn't seem like this is a matter of correctness, but rather of style. Should this check be moved fromvet
tolint
?\cc @robpike
The text was updated successfully, but these errors were encountered: