This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-resources.git


The following commit(s) were added to refs/heads/master by this push:
     new ec66b7d  [MSHARED-1408] Refresh IntelliJ formater
ec66b7d is described below

commit ec66b7d6ac8c2eb035c4c8f613419e8899b1096e
Author: Slawomir Jaranowski <s.jaranow...@gmail.com>
AuthorDate: Sun Jun 2 09:10:09 2024 +0200

    [MSHARED-1408] Refresh IntelliJ formater
    
    Exported by IntelliJ IDEA 2024.1.2 (Ultimate Edition)
---
 src/main/resources/config/maven-idea-codestyle-2022.xml | 12 ++++++++++--
 src/site/apt/index.apt.vm                               |  5 +++++
 2 files changed, 15 insertions(+), 2 deletions(-)

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 @@ under the License.
     </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 @@ under the License.
     <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 @@ under the License.
     <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 @@ under the License.
   <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 @@ ${project.name}
   {{{/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
 

Reply via email to