You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iotdb.apache.org by hx...@apache.org on 2021/03/10 08:13:08 UTC
[iotdb] branch seperate_thrift updated: add instruction for the
ordering of imports
This is an automated email from the ASF dual-hosted git repository.
hxd pushed a commit to branch seperate_thrift
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/seperate_thrift by this push:
new ee1b649 add instruction for the ordering of imports
ee1b649 is described below
commit ee1b649987cf47c69fa1592e32651a8d2270fc80
Author: xiangdong huang <sa...@gmail.com>
AuthorDate: Wed Mar 10 16:12:34 2021 +0800
add instruction for the ordering of imports
---
docs/Development/ContributeGuide.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/docs/Development/ContributeGuide.md b/docs/Development/ContributeGuide.md
index 1f98bba..3dea6c0 100644
--- a/docs/Development/ContributeGuide.md
+++ b/docs/Development/ContributeGuide.md
@@ -96,6 +96,17 @@ plugin](https://github.com/diffplug/spotless/tree/main/plugin-maven) together wi
5. Install the [Save Actions
plugin](https://plugins.jetbrains.com/plugin/7642-save-actions) , and enable the plugin, along with "Optimize imports" and "Reformat file"
6. In the "Save Actions" settings page, setup a "File Path Inclusion" for `.*\.java`. Otherwise you will get unintended reformatting in other files you edit.
+7. Fix the issues of reordering the import packages: in IDEA: choose: Preferences | Editor | Code Style | Java | imports. At the tail of the panel, there is "Import Layout", change it to:
+```shell
+ import org.apache.iotdb.*
+ <blank line>
+ import all other imports
+ <blank line>
+ import java.*
+ <blank line>
+ import static all other imports
+```
+
## Contributing code