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

Issue #15967: fix yield fails indentation in switch with forceStrictCondition #16131

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

Conversation

mohitsatr
Copy link
Contributor

@mohitsatr mohitsatr commented Jan 8, 2025

fixes #15967

@mohitsatr
Copy link
Contributor Author

Github, generate report for Indentation/all-examples-in-one

Copy link
Contributor

github-actions bot commented Jan 8, 2025

@mohitsatr
Copy link
Contributor Author

Github, generate report for Indentation/all-examples-in-one

Copy link
Contributor

@mohitsatr
Copy link
Contributor Author

Github, generate report for Indentation/all-examples-in-one

Copy link
Contributor

@mohitsatr
Copy link
Contributor Author

Github, generate report for Indentation/all-examples-in-one

Copy link
Contributor

@mohitsatr
Copy link
Contributor Author

Github, generate report for Indentation/all-examples-in-one

Copy link
Contributor

@mohitsatr
Copy link
Contributor Author

Github, generate report for Indentation/Example2

Copy link
Contributor

@mohitsatr
Copy link
Contributor Author

mohitsatr commented Jan 13, 2025

@romani please check out regression report #16131 (comment)

basically it resolves the original problem for which issue is raised. there is just one false positive case
i have been playing with it and looks like it requires more than a simple code change as there are more diffs in subsequent reports. I think we should raise separate issue for that case. what do you think?

other report : #16131 (comment)
#16131 (comment)
problem arises when switch appears as a condition in if

if (switch(today) {
   . .. .
    }
)

ps: please ignore diff reports which are not linked in this comment

@mohitsatr
Copy link
Contributor Author

Github, generate report for Indentation/all-examples-in-one

Copy link
Contributor

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

items:

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

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

good to merge !!

thanks a lot !

@nrmancuso
Copy link
Member

@romani please reply to comment at #16131 (comment)

@mohitsatr please rebase on the latest master branch

@nrmancuso nrmancuso assigned romani and unassigned nrmancuso Jan 25, 2025
@romani
Copy link
Member

romani commented Jan 25, 2025

yes, lets create separate issue on this case, we can improve lateron on this.

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.

yield fails Indentation check in switch expressions
3 participants