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 repeated conditional when local variables in diff methods #1740

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

JuanVqz
Copy link
Contributor

@JuanVqz JuanVqz commented Oct 11, 2023

There might be a lot of things broken I'm opening the PR just to have feedback, I hope that is fine.

Fixes #1455


result[condition].push(condition.line)
result[method.name].push(condition.line)
Copy link
Contributor Author

@JuanVqz JuanVqz Oct 11, 2023

Choose a reason for hiding this comment

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

This is kind of incomplete. I'm not sure which one could be better. @troessner @mvz could you please help me out?

{s(:lvar, :charlie)=>{:bravo=>[4], :delta=>[9], :echo=>[14]}}
{:bravo=>{s(:lvar, :charlie)=>[4]}, :delta=>{s(:lvar, :charlie)=>[9]}, :echo=>{s(:lvar, :charlie)=>[14]}}

I edited the comment, it had a ctrl + c/v error

@JuanVqz JuanVqz force-pushed the fix_repeated_conditional_local_variable_checks branch from b50a544 to e5ba696 Compare October 16, 2023 20:51
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.

Repeated Conditional incorrectly reports in case there are local variable checks in different methods
1 participant