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
I think this would increase code quality a lot if those errors could be reported by analyzing the code.
The text was updated successfully, but these errors were encountered:
seankhliao
changed the title
Feature Request: go vet should check for iterator variable reference
cmd/vet: check for iterator variable referenceFeb 24, 2021
seankhliao
changed the title
cmd/vet: check for iterator variable reference
proposal: cmd/vet: check for iterator variable referenceFeb 24, 2021
Hi,
I wanted to make a feature request as this happens way too often and results in strange errors which are hard to debug: The iterator variable reference (https://github.com/golang/go/wiki/CommonMistakes#using-reference-to-loop-iterator-variable) should be reported by
go vet
.I think this would increase code quality a lot if those errors could be reported by analyzing the code.
The text was updated successfully, but these errors were encountered: