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

Issue #15831: enabled allowEmptySwitchBlockStatements property of WhitespaceAround in google_checks.xml #15839

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

Zopsss
Copy link
Member

@Zopsss Zopsss commented Oct 31, 2024

Closes #15831

Enabled allowEmptySwitchBlockStatements, added test cases and updated InputFormattedXxxxx file

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok to merge

@Zopsss
Copy link
Member Author

Zopsss commented Oct 31, 2024

wait build seems to be failing

@Zopsss Zopsss force-pushed the enable-empty-switch-statements branch from 8c78fe9 to 60ab7cf Compare October 31, 2024 14:34
…rty of WhitespaceAround in google_checks.xml
Comment on lines 28 to -55
case Integer i when (i == 0) -> {}
// 2 violations above:
// ''{' is not followed by whitespace.'
// ''}' is not preceded with whitespace.'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm this bug was known but it didn't had an issue opened for it. Glad that we were able to solve it now.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Zopsss , testing base that you did at summer is awesome to prevent any problems.
We missed it as a lot of problems and we eliminated vast majority of them. But some still missed, it is ok. Main point that we unlikely to leak new regression.

@Zopsss
Copy link
Member Author

Zopsss commented Oct 31, 2024

build seems to be passing now :D

Copy link
Member

@romani romani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok to merge

@romani romani merged commit 4c67922 into checkstyle:master Oct 31, 2024
111 of 112 checks passed
@Zopsss Zopsss deleted the enable-empty-switch-statements branch October 31, 2024 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

google_checks.xml not allowing eol left curly for switch statement with lambda-like construct
2 participants