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
Describe the bug
I see this linter warning in my project which uses Go 1.22 in go.mod:
datarace: datarace: range value i is captured (by-reference) in goroutine (revive)
Logs
PS C:\Users\Eldar\Projects\test> revive -config conf.toml .
a_test.go:23:24: datarace: range value i is captured (by-reference) in goroutine
a_test.go:23:24: loop variable i captured by func literal
Desktop (please complete the following information):
OS: Windows 11 Pro 23H2
go version go1.22.0 windows/amd64
Revive version 1.3.7
The text was updated successfully, but these errors were encountered:
Describe the bug
I see this linter warning in my project which uses Go 1.22 in go.mod:
datarace: datarace: range value i is captured (by-reference) in goroutine (revive)
To Reproduce
Steps to reproduce the behavior:
revive -config conf.toml .
Expected behavior
No warning for Go 1.22
Logs
PS C:\Users\Eldar\Projects\test> revive -config conf.toml .
a_test.go:23:24: datarace: range value i is captured (by-reference) in goroutine
a_test.go:23:24: loop variable i captured by func literal
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: