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

Fix Instance Variable Assumption false positive #1737

Conversation

JuanVqz
Copy link
Contributor

@JuanVqz JuanVqz commented Oct 10, 2023

Can you please have a look?

I hope this fixes #1492

What this basically does is look up through all the initializers if it matches the ivasgn to consider it instance variable assumption.

@troessner
Copy link
Owner

Hey @JuanVqz ,

that does look nice! @mvz any comments?

@troessner troessner requested a review from mvz October 10, 2023 12:21
Copy link
Collaborator

@mvz mvz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me too. Let's merge this!

@JuanVqz JuanVqz force-pushed the fix-false-positive-of-instance-variable-assumption-with-struct-initialize branch from e5a086f to 033f00a Compare October 10, 2023 17:34
@JuanVqz
Copy link
Contributor Author

JuanVqz commented Oct 10, 2023

@troessner and @mvz thank you for having a look, I rebased it 👍

@mvz mvz merged commit 07ea5e4 into troessner:master Oct 11, 2023
6 checks passed
@mvz
Copy link
Collaborator

mvz commented Oct 11, 2023

Thanks @JuanVqz!

@JuanVqz JuanVqz deleted the fix-false-positive-of-instance-variable-assumption-with-struct-initialize branch October 11, 2023 16:21
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.

False positive of Instance Variable Assumption with Struct initialize overload
3 participants