-
Notifications
You must be signed in to change notification settings - Fork 49
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
Break on lambda argument in method chain #707
Conversation
Generate changelog in
|
Released 2.21.0 |
@gatesn what was the specific checkstyle thing that was objecting here? I've never encountered this error personally |
you can see a test case - it's a chained lambda invocation (with multi statement lambdas) of variable name that's <8 characters |
DW nick slacked me. My question was because this PR said it was fixing a checkstyle rule, but didn't specific which checkstyle rule. The screenshot showed |
Before this PR
Chained calls involving lambda expressions don't line break, which conflicts with checkstyle (at least the gradle-baseline checkstyle config)
After this PR
Possible downsides?
🤷♂️ I've also added a test to show that non-chained lambda calls don't include a line break