You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2024/06/02 07:10:28 UTC

(maven-shared-resources) branch MSHARED-1408 created (now da60779)

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

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


      at da60779  [MSHARED-1408] Refresh IntelliJ formater

This branch includes the following new commits:

     new da60779  [MSHARED-1408] Refresh IntelliJ formater

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(maven-shared-resources) 01/01: [MSHARED-1408] Refresh IntelliJ formater

Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit da607794dbeab1a2498581fe9003e45a1bd1891b
Author: Slawomir Jaranowski <s....@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