-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Issue #17120: fix false positive for Lambda child in indentation check #17138
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
Conversation
GitHub, generate report |
Github, generate report for Indentation/all-examples-in-one |
Report for Indentation/all-examples-in-one: |
@romani PR is ready for review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot.
just test extension to be sure on just another edge case.
Looks like no much usage of this new code pattern still in web
...m/google/checkstyle/test/chapter4formatting/rule4841indentation/InputLambdaChildCorrect.java
Outdated
Show resolved
Hide resolved
@christophpre , can you test this update on your code base ?
and you can use snapshot version from your maven repository. |
@romani I tested this PR fix with my example gist, but unfortunately it doesn't fix my issue. But maybe as @Aziz-755 pointed out here: #17120 (comment) I might have to check my checkstyle settings again. |
b006df6
to
90d1bc6
Compare
Github, generate report for Indentation/all-examples-in-one |
ae69202
to
6badc86
Compare
Report for Indentation/all-examples-in-one: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...able/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputLambdaChild.java
Outdated
Show resolved
Hide resolved
@Aziz-755 , please do few minor above and we are good to merge |
6badc86
to
9c1440e
Compare
9c1440e
to
3a128b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks a lot.
This breaks a lot of existing code. In Trino we have nested switch expressions like this: https://github.com/trinodb/trino/blob/3da377228dd6f7a05eda7e9216407bff59099919/core/trino-spi/src/main/java/io/trino/spi/function/ScalarFunctionAdapter.java#L166 This now fails with:
|
@wendigo , please report new issue, to let us see all details |
fixes: #17120
Diff Regression config: https://gist.githubusercontent.com/mohitsatr/937e10572dd412961b61c77577619dff/raw/7a47240f8793e7335adbd81c2806b375f0394815/google_checks_indentation.xml
Diff Regression projects: https://gist.githubusercontent.com/mohitsatr/68b0817ac52ff7773d35585ee12fc1cc/raw/9ba8e4fb324e1daf589874c6992f2aa87b03079a/list-of-projects.properties