[MSHARED-1408] Refresh IntelliJ formater
Exported by IntelliJ IDEA 2024.1.2 (Ultimate Edition)
diff --git a/src/main/resources/config/maven-idea-codestyle-2022.xml b/src/main/resources/config/maven-idea-codestyle-2022.xml
index e05cfb3..9d77429 100644
--- a/src/main/resources/config/maven-idea-codestyle-2022.xml
+++ b/src/main/resources/config/maven-idea-codestyle-2022.xml
@@ -34,12 +34,18 @@
</option>
<option name="IMPORT_LAYOUT_TABLE">
<value>
- <package name="" withSubpackages="true" static="true" />
+ <package name="javax" withSubpackages="true" static="false" />
+ <emptyLine />
+ <package name="java" withSubpackages="true" static="false" />
<emptyLine />
<package name="" withSubpackages="true" static="false" />
+ <emptyLine />
+ <package name="" withSubpackages="true" static="true" />
</value>
</option>
<option name="ALIGN_TYPES_IN_MULTI_CATCH" value="false" />
+ <option name="JD_ALIGN_PARAM_COMMENTS" value="false" />
+ <option name="JD_ALIGN_EXCEPTION_COMMENTS" value="false" />
<option name="JD_P_AT_EMPTY_LINES" value="false" />
<option name="JD_KEEP_EMPTY_LINES" value="false" />
<option name="JD_DO_NOT_WRAP_ONE_LINE_COMMENTS" value="true" />
@@ -47,6 +53,7 @@
<option name="JD_INDENT_ON_CONTINUATION" value="true" />
</JavaCodeStyleSettings>
<XML>
+ <option name="XML_SPACE_INSIDE_EMPTY_TAG" value="true" />
<option name="XML_KEEP_WHITE_SPACES_INSIDE_CDATA" value="true" />
</XML>
<editorconfig>
@@ -89,6 +96,7 @@
<option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
<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_BEFORE_IMPORTS" value="0" />
<option name="BLANK_LINES_AROUND_FIELD" value="1" />
<option name="BLANK_LINES_AROUND_FIELD_IN_INTERFACE" value="1" />
<option name="WHILE_ON_NEW_LINE" value="true" />
@@ -123,7 +131,7 @@
<codeStyleSettings language="XML">
<indentOptions>
<option name="INDENT_SIZE" value="2" />
- <option name="CONTINUATION_INDENT_SIZE" value="4" />
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
<option name="TAB_SIZE" value="2" />
</indentOptions>
</codeStyleSettings>
diff --git a/src/site/apt/index.apt.vm b/src/site/apt/index.apt.vm
index fb279ba..be96b86 100644
--- a/src/site/apt/index.apt.vm
+++ b/src/site/apt/index.apt.vm
@@ -45,6 +45,11 @@
{{{/developers/conventions/code.html}Maven coding conventions}} that can be
used in Maven Checkstyle Plugin.
+* IntelliJ IDEA code formater
+
+** <<<config/maven-idea-codestyle-2022.xml>>>
+
+ This is IntelliJ IDEA code formater which can be imported into IDE.
* Usage