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 autocorrect for single line if/else expressions #727

Merged
merged 5 commits into from
Jun 1, 2020

Conversation

csgulley
Copy link
Contributor

This fixes the autocorrect functionality in MultiLineIfElseRule that was partially implemented but commented out. It should resolve #174.

@romtsn
Copy link
Collaborator

romtsn commented May 20, 2020

@csgulley could you rebase so the checks can pass again?

@csgulley csgulley force-pushed the multi_line_if_else_autocorrect branch from bf311f0 to d42fa29 Compare May 22, 2020 18:54
@romtsn
Copy link
Collaborator

romtsn commented May 23, 2020

Sorry for coming up with edge-cases again, but could you also add a test with else if branch in place? Don't think it will change something either, but good to have that case tested. After that I think we're good to merge this one.

@romtsn
Copy link
Collaborator

romtsn commented May 31, 2020

@csgulley I've updated the handling myself in case if else if block is present, I hope it's fine for you. I will merge it, once figure out the CI issues. Thanks a lot for implementing this!

@romtsn romtsn force-pushed the multi_line_if_else_autocorrect branch from cfe12a1 to a0512cc Compare June 1, 2020 16:23
@romtsn romtsn merged commit 5ad1671 into pinterest:master Jun 1, 2020
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.

'If' should force curly braces
2 participants