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

Fix auto formatting of throwing blocks #20316

Conversation

findepi
Copy link
Member

@findepi findepi commented Jan 10, 2024

{ throw ...; } lambdas read very well. However, all recent IntelliJ versions insist on removing whitespace before throw and after final ;. This results in checkstyle violation when IDE automatic formatting is used.

Reformat lambdas in a way that IDE automatic formatting does not violate checkstyle rules, in order to save time when working with code.

`{ throw ...; }` lambdas read very well. However, all recent IntelliJ
versions insist on removing whitespace before `throw` and after final
`;`. This results in checkstyle violation when IDE automatic formatting
is used.

Reformat lambdas in a way that IDE automatic formatting does not violate
checkstyle rules, in order to save time when working with code.
@findepi findepi added the no-release-notes This pull request does not require release notes entry label Jan 10, 2024
@cla-bot cla-bot bot added the cla-signed label Jan 10, 2024
@findepi
Copy link
Member Author

findepi commented Jan 10, 2024

Also proposed airbase checker change airlift/airbase#389

@github-actions github-actions bot added the delta-lake Delta Lake connector label Jan 10, 2024
@findepi
Copy link
Member Author

findepi commented Jan 10, 2024

CI #20323

@findepi findepi merged commit fd048d0 into trinodb:master Jan 10, 2024
87 of 89 checks passed
@findepi findepi deleted the findepi/fix-auto-formatting-of-throwing-blocks-e707e9 branch January 10, 2024 13:40
@github-actions github-actions bot added this to the 436 milestone Jan 10, 2024
@martint
Copy link
Member

martint commented Jan 10, 2024

Please don't do this. It makes the harder to read. I don't experience the problem you mention with IntelliJ, so we should figure out what's going on there, instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed delta-lake Delta Lake connector no-release-notes This pull request does not require release notes entry
Development

Successfully merging this pull request may close these issues.

3 participants