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

Recipe - Move lambda argument outside of method invocation parens #544

Open
nmck257 opened this issue Dec 13, 2023 · 0 comments
Open

Recipe - Move lambda argument outside of method invocation parens #544

nmck257 opened this issue Dec 13, 2023 · 0 comments
Labels
recipe Requests for new automated code changes

Comments

@nmck257
Copy link

nmck257 commented Dec 13, 2023

What problem are you trying to solve?

Standard formatting

What precondition(s) should be checked before applying this recipe?

None?

Describe the situation before applying the recipe

val foo = 1.let({ it + 1 })

Describe the situation after applying the recipe

val foo = 1.let { it + 1 }

Have you considered any alternatives or workarounds?

Any additional context

I'm pretty sure this isn't already implemented (peeking at the cleanup, format, style packages), but I could have missed it

Are you interested in contributing this recipe to OpenRewrite?

Time permitting, sure -- it's not a critical priority for me, and I expect that core grammar enhancements are a bigger priority for the maintainers, so whoever gets there first

@timtebeek timtebeek moved this to Backlog in OpenRewrite Dec 14, 2023
@kunli2 kunli2 added recipe Requests for new automated code changes and removed parser-kotlin labels Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
recipe Requests for new automated code changes
Projects
Status: Backlog
Development

No branches or pull requests

3 participants