You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by si...@apache.org on 2021/12/09 21:56:41 UTC

[hudi] branch asf-site updated: [MINOR] Update code style setup in IntelliJ (#4261)

This is an automated email from the ASF dual-hosted git repository.

sivabalan pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/hudi.git


The following commit(s) were added to refs/heads/asf-site by this push:
     new 50a9d9e  [MINOR] Update code style setup in IntelliJ (#4261)
50a9d9e is described below

commit 50a9d9ed55b82a47782f9401d95c215430e9a7b7
Author: Y Ethan Guo <et...@gmail.com>
AuthorDate: Thu Dec 9 13:56:18 2021 -0800

    [MINOR] Update code style setup in IntelliJ (#4261)
---
 website/contribute/developer-setup.md                  |   7 +++++++
 .../contributing/IDE_setup_code_style_java_after.png   | Bin 0 -> 149713 bytes
 .../contributing/IDE_setup_code_style_java_before.png  | Bin 0 -> 168110 bytes
 3 files changed, 7 insertions(+)

diff --git a/website/contribute/developer-setup.md b/website/contribute/developer-setup.md
index 868eebd..e34d96e 100644
--- a/website/contribute/developer-setup.md
+++ b/website/contribute/developer-setup.md
@@ -40,6 +40,13 @@ To contribute, you would need to do the following
     * Click on + and add the style/checkstyle.xml file
 
       ![IDE_setup_checkstyle_4](/assets/images/contributing/IDE_setup_checkstyle_4.png)
+    * Open Preferences -> Editor -> Code Style -> Java
+    * Select "Project" as the "Scheme".  Then, go to the settings, open "Import Scheme" -> "CheckStyle Configuration", select `style/checkstyle.xml` to load
+
+      ![IDE_setup_code_style_java_before](/assets/images/contributing/IDE_setup_code_style_java_before.png)
+    * After loading the configuration, you should see that the "Indent" and "Continuation indent" become 2 and 4, from 4 and 8, respectively
+
+      ![IDE_setup_code_style_java_after](/assets/images/contributing/IDE_setup_code_style_java_after.png)
     * Apply/Save the changes
 - \[Recommended\] Set up the [Save Action Plugin](https://plugins.jetbrains.com/plugin/7642-save-actions) to auto format & organize imports on save. The Maven Compilation life-cycle will fail if there are checkstyle violations.
 
diff --git a/website/static/assets/images/contributing/IDE_setup_code_style_java_after.png b/website/static/assets/images/contributing/IDE_setup_code_style_java_after.png
new file mode 100644
index 0000000..db58aea
Binary files /dev/null and b/website/static/assets/images/contributing/IDE_setup_code_style_java_after.png differ
diff --git a/website/static/assets/images/contributing/IDE_setup_code_style_java_before.png b/website/static/assets/images/contributing/IDE_setup_code_style_java_before.png
new file mode 100644
index 0000000..c259c40
Binary files /dev/null and b/website/static/assets/images/contributing/IDE_setup_code_style_java_before.png differ