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

ORC-1306: Fixed indented code style for Java modules #1303

Closed
wants to merge 2 commits into from

Conversation

guiyanakuang
Copy link
Member

What changes were proposed in this pull request?

This pr is aimed at fixing all indentation style issues with java modules. And add indentation checking rules to checkstyle.xml.

    <module name="Indentation">
      <property name="severity" value="error"/>
      <property name="basicOffset" value="2"/>
      <property name="braceAdjustment" value="0"/>
      <property name="caseIndent" value="2"/>
      <property name="throwsIndent" value="2"/>
      <property name="lineWrappingIndentation" value="4"/>
      <property name="arrayInitIndent" value="2"/>
    </module>

Why are the changes needed?

Automated checks save more time and nothing is missed.

How was this patch tested?

Checking with maven-check-plugin.

@github-actions github-actions bot added the JAVA label Nov 3, 2022
@deshanxiao
Copy link
Contributor

Thank you for fix it @guiyanakuang

Copy link
Member

@wgtmac wgtmac left a comment

Choose a reason for hiding this comment

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

LGTM +1

Copy link
Member

@dongjoon-hyun dongjoon-hyun left a comment

Choose a reason for hiding this comment

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

Nice! It's not worse than I thought.
+100, Thank you.

cc @williamhyun

@dongjoon-hyun
Copy link
Member

It's merged to main.
Could you make a PR to branch-1.8 too?

@dongjoon-hyun dongjoon-hyun added this to the 1.8.1 milestone Nov 3, 2022
@guiyanakuang
Copy link
Member Author

Sure, let me finish it later. :)

cxzl25 pushed a commit to cxzl25/orc that referenced this pull request Jan 11, 2024
### What changes were proposed in this pull request?
This pr is aimed at fixing all indentation style issues with java modules. And add indentation checking rules to checkstyle.xml.

```xml
    <module name="Indentation">
      <property name="severity" value="error"/>
      <property name="basicOffset" value="2"/>
      <property name="braceAdjustment" value="0"/>
      <property name="caseIndent" value="2"/>
      <property name="throwsIndent" value="2"/>
      <property name="lineWrappingIndentation" value="4"/>
      <property name="arrayInitIndent" value="2"/>
    </module>
```

### Why are the changes needed?
Automated checks save more time and nothing is missed.

### How was this patch tested?
Checking with maven-check-plugin.

Closes apache#1303 from guiyanakuang/ORC-1306.

Authored-by: Guiyanakuang <guiyanakuang@gmail.com>
Signed-off-by: Dongjoon Hyun <dongjoon@apache.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants