You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2021/02/16 08:27:46 UTC

[GitHub] [iotdb] sunjincheng121 opened a new pull request #2686: [IOTDB-1156] Add IDE instructions for Code Formatting

sunjincheng121 opened a new pull request #2686:
URL: https://github.com/apache/iotdb/pull/2686


   Add IDE instructions for Google Java  Code Formatting.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [iotdb] jixuan1989 commented on a change in pull request #2686: [IOTDB-1156] Add IDE instructions for Code Formatting

Posted by GitBox <gi...@apache.org>.
jixuan1989 commented on a change in pull request #2686:
URL: https://github.com/apache/iotdb/pull/2686#discussion_r576735501



##########
File path: docs/Development/ContributeGuide.md
##########
@@ -83,6 +83,21 @@ Precautions:
 * Do not use special Unicode chars, e.g., U+FF1A 
 * Do not use the character of dollar (as we will use Latex to generate pdf files)
 
+### Code Formatting
+
+We use the [Spotless
+plugin](https://github.com/diffplug/spotless/tree/main/plugin-maven) together with [google-java-format](https://github.com/google/google-java-format) to format our Java code. You can configure your IDE to automatically apply formatting on saving with these steps:
+
+1. Download the [google-java-format

Review comment:
       it can be installed in IDEA.. 
   Preferences -> plugins -> search google-java-format




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [iotdb] jixuan1989 merged pull request #2686: [IOTDB-1156] Add IDE instructions for Code Formatting

Posted by GitBox <gi...@apache.org>.
jixuan1989 merged pull request #2686:
URL: https://github.com/apache/iotdb/pull/2686


   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [iotdb] sunjincheng121 commented on a change in pull request #2686: [IOTDB-1156] Add IDE instructions for Code Formatting

Posted by GitBox <gi...@apache.org>.
sunjincheng121 commented on a change in pull request #2686:
URL: https://github.com/apache/iotdb/pull/2686#discussion_r576762773



##########
File path: docs/Development/ContributeGuide.md
##########
@@ -83,6 +83,21 @@ Precautions:
 * Do not use special Unicode chars, e.g., U+FF1A 
 * Do not use the character of dollar (as we will use Latex to generate pdf files)
 
+### Code Formatting
+
+We use the [Spotless
+plugin](https://github.com/diffplug/spotless/tree/main/plugin-maven) together with [google-java-format](https://github.com/google/google-java-format) to format our Java code. You can configure your IDE to automatically apply formatting on saving with these steps:
+
+1. Download the [google-java-format

Review comment:
       How about `More detailed setup manual`?




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [iotdb] jixuan1989 commented on a change in pull request #2686: [IOTDB-1156] Add IDE instructions for Code Formatting

Posted by GitBox <gi...@apache.org>.
jixuan1989 commented on a change in pull request #2686:
URL: https://github.com/apache/iotdb/pull/2686#discussion_r576736371



##########
File path: docs/Development/ContributeGuide.md
##########
@@ -83,6 +83,21 @@ Precautions:
 * Do not use special Unicode chars, e.g., U+FF1A 
 * Do not use the character of dollar (as we will use Latex to generate pdf files)
 
+### Code Formatting
+
+We use the [Spotless
+plugin](https://github.com/diffplug/spotless/tree/main/plugin-maven) together with [google-java-format](https://github.com/google/google-java-format) to format our Java code. You can configure your IDE to automatically apply formatting on saving with these steps:
+
+1. Download the [google-java-format

Review comment:
       these operations can not be ignored:
   https://github.com/google/google-java-format#intellij-android-studio-and-other-jetbrains-ides




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org