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

removed autoformat when no necessary #408

Merged
merged 2 commits into from
Aug 8, 2023
Merged

Conversation

joanvr
Copy link
Contributor

@joanvr joanvr commented Aug 8, 2023

What's changed?

Remove the call to maybeAutoFormat on some places

What's your motivation?

Autoformat in some places it's not strictly needed, due to the produced changes, and because the limited scope of the autoFormat it can lead to unwanted results.

Anything in particular you'd like reviewers to focus on?

I've added couple of tests to check for extra scenarios, but maybe I missed some corner case where the autoFormat was needed

Anyone you would like to review specifically?

@timtebeek @rpau

Have you considered any alternatives or workarounds?

Maybe trying to fix the AutoFormat (more specifically the TabsAndIndentsVisitor) could be a better fix, but it seems kinda tricky and complex thing to do, with much bigger (and hard to test) impact.

Checklist

  • I've added unit tests to cover both positive and negative cases

@joanvr joanvr added the bug Something isn't working label Aug 8, 2023
@joanvr joanvr requested review from timtebeek and rpau August 8, 2023 08:41
@joanvr joanvr self-assigned this Aug 8, 2023
@joanvr joanvr merged commit d02da75 into main Aug 8, 2023
1 check passed
@joanvr joanvr deleted the fix/indent-request-annotation branch August 8, 2023 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants