-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Data race in rule function-length #736
Comments
Hi @hansgylling, thanks for filling the issue. |
Yes, I can test. I can probably do it tomorrow or on Tuesday. |
I have tested now and I can't reproduce the race condition using your branch. I tried both the original config file in the bug report and a config file using all rules at once. |
Thanks for the check @hansgylling |
@chavacava let me know if you'd like to open a PR so we can do a release. |
I have restricted Internet access until the week-end. If the release can wait, I'll make the PR by saturday |
Thanks for fixing this bug. |
Describe the bug
When revive is installed with Go's race detector enabled, any use of the function-length rule triggers a data race.
To Reproduce
Steps to reproduce the behavior:
go install -a -race github.com/mgechev/revive@latest
# shell command revive -config revive_function_length_data_race.toml ./...
Expected behavior
No data race detected.
Logs
Desktop (please complete the following information):
Additional context
N/A
The text was updated successfully, but these errors were encountered: