Repository navigation
HIVE-30291: Indent switch case labels one level, per Google Java Style - #6998
Open
abstractdog wants to merge 1 commit into
Open
abstractdog wants to merge 1 commit into
abstractdog wants to merge 1 commit into
Conversation
Set Checkstyle caseIndent to 2 (one basicOffset level) in the root, standalone-metastore, storage-api and hcatalog configs, matching the iceberg module. Flip the Eclipse formatter to indent cases relative to switch.
InvisibleProgrammer
approved these changes
Dec 1, 2026
deniskuzZ
approved these changes
Dec 1, 2026
deniskuzZ
left a comment
Member
There was a problem hiding this comment.
+1, i always ignore switch case indent complains from sonar when it says switch and case should have same indentation
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What changes were proposed in this pull request?
Set Checkstyle
caseIndentfrom 0 to 2 (one indent level) in the root,standalone-metastore,storage-apiandhcatalogconfigs, matchingiceberg. Also make the Eclipse formatter indev-support/eclipse-styles.xmlindent case labels.Why are the changes needed?
Google Java Style, Checkstyle's default and IntelliJ's default all indent
caselabels insideswitch. Today that formatting is flagged by Checkstyle and SonarCloud. Nearly all arrow-style switches on master are already indented (68 of 74).Does this PR introduce any user-facing change?
No.
How was this patch tested?
It is a configuration change only, so no tests were added.