Skip to content

Commit

Permalink
chore: Add a newline formatting configuration and a comment for warni…
Browse files Browse the repository at this point in the history
…ng (#2464)

- Add a newline formatting configuration
- Add a comment for the IDEA unsupported warning about `continuation_indent_size`
  • Loading branch information
returnToInnocence authored Feb 29, 2024
1 parent 47a68f0 commit 2e3adcd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
1 change: 1 addition & 0 deletions hugegraph-style.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit 2e3adcd

Please sign in to comment.