-
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
Fix lambda compactness regression #728
Conversation
Generate changelog in
|
Released 2.23.0 |
This causes conflicts with checkstyle rules in https://github.com/palantir/gradle-baseline/ :/ |
I verified that the test output is compatible with baseline checkstyle configuration |
ok, I have an actual repro. The lambda has to be more > 10 lines. Will make a pr |
after digging more the included test does not pass it. The thing that it boils down to is https://github.com/palantir/gradle-baseline/blob/2a485956a20e7f2ae9a9ddfa689255e347aa96a9/gradle-baseline-java/src/main/groovy/com/palantir/baseline/plugins/BaselineConfig.java#L105-L141 and our detection not being fully robust. So... my proposal here is to kill that logic I linked and make that the default checkstyle? |
@carterkozak do you have an example of a less readable case? Happy with the revert if we fix the checkstyle plugin config issue, but I also thought it looked a bit prettier! |
This reverts #708 and #707 which made expression lambdas less
readable.
==COMMIT_MSG==
Fix lambda compactness regression
==COMMIT_MSG==