This is an automated email from the ASF dual-hosted git repository.
vgalaxies pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-hugegraph.git
The following commit(s) were added to refs/heads/master by this push:
new 2e3adcde0 chore: Add a newline formatting configuration and a comment
for warning (#2464)
2e3adcde0 is described below
commit 2e3adcde0282ec75f7d1c4fdde47ad7c437b11ff
Author: Hongjun Li <[email protected]>
AuthorDate: Thu Feb 29 20:35:52 2024 +0800
chore: Add a newline formatting configuration and a comment for warning
(#2464)
- Add a newline formatting configuration
- Add a comment for the IDEA unsupported warning about
`continuation_indent_size`
---
.editorconfig | 5 +++--
hugegraph-style.xml | 1 +
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/.editorconfig b/.editorconfig
index 67bf0e448..5c4792669 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -22,9 +22,10 @@ charset = utf-8
end_of_line = lf
insert_final_newline = true
-[*.{java,xml,py}]
+[*.{java, xml, py}]
indent_style = space
indent_size = 4
-[*.{java,xml}]
+[*.{java, xml}]
+# Ignore the IDEA unsupported warning & it works well (indeed)
continuation_indent_size = 8
diff --git a/hugegraph-style.xml b/hugegraph-style.xml
index 84b4d2746..46f1f4560 100644
--- a/hugegraph-style.xml
+++ b/hugegraph-style.xml
@@ -81,6 +81,7 @@
<option name="KEEP_BLANK_LINES_BETWEEN_PACKAGE_DECLARATION_AND_HEADER"
value="1" />
<option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1" />
<option name="BLANK_LINES_AROUND_CLASS" value="1" />
+ <option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" />
<indentOptions>
<option name="SMART_TABS" value="true" />
</indentOptions>