Skip to content
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

modifies-value-receiver: warn on slice or map #943

Merged
merged 2 commits into from
Nov 28, 2023

Conversation

bboreham
Copy link
Contributor

Assignments which index into the slice or map are already ignored on line 72, and those where the whole receiver is slice or map on line 50. We should not ignore assignments where the member variable is slice or map.

Closes #942

Assignments which index into the slice or map are already ignored on
line 72, and those where the whole receiver is slice or map on line 50.
We should not ignore assignments where the member variable is slice
or map.

Signed-off-by: Bryan Boreham <bjboreham@gmail.com>
@denisvmedia denisvmedia merged commit 7da6a39 into mgechev:master Nov 28, 2023
4 checks passed
@bboreham bboreham deleted the fix-mvr branch November 28, 2023 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

modifies-value-receiver ignores modification to maps and slices
2 participants