You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/05/02 02:33:01 UTC

[GitHub] [incubator-shenyu] dragon-zhang opened a new issue, #3370: [Question] How about add code style file ?

dragon-zhang opened a new issue, #3370:
URL: https://github.com/apache/incubator-shenyu/issues/3370

   ### Question
   
   The current code style is still not uniform enough. For example, there is no certain standard whether the two methods are empty or not. I intend to add a `shenyu_codestyle.xml` to unify the standard, later, when people write Shenyu's code, they need to import `shenyu_codestyle.xml` first. Guys, what do you think? Please leave a message.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-shenyu] li-keguo commented on issue #3370: [Question] How about add code style file ?

Posted by GitBox <gi...@apache.org>.
li-keguo commented on issue #3370:
URL: https://github.com/apache/incubator-shenyu/issues/3370#issuecomment-1118243564

   see https://github.com/apache/incubator-shenyu/blob/master/script/shenyu_checkstyle.xml
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-shenyu] yu199195 closed issue #3370: [Question] How about add code style file ?

Posted by GitBox <gi...@apache.org>.
yu199195 closed issue #3370: [Question] How about add code style file ?
URL: https://github.com/apache/incubator-shenyu/issues/3370


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-shenyu] dragon-zhang commented on issue #3370: [Question] How about add code style file ?

Posted by GitBox <gi...@apache.org>.
dragon-zhang commented on issue #3370:
URL: https://github.com/apache/incubator-shenyu/issues/3370#issuecomment-1118415056

   agree


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-shenyu] dragon-zhang commented on issue #3370: [Question] How about add code style file ?

Posted by GitBox <gi...@apache.org>.
dragon-zhang commented on issue #3370:
URL: https://github.com/apache/incubator-shenyu/issues/3370#issuecomment-1114441703

   Here is a codestyle file from rocketmq:
   ```xml
   <code_scheme name="rocketmq">
       <option name="USE_SAME_INDENTS" value="true"/>
       <option name="IGNORE_SAME_INDENTS_FOR_LANGUAGES" value="true"/>
       <option name="OTHER_INDENT_OPTIONS">
           <value>
               <option name="INDENT_SIZE" value="4"/>
               <option name="CONTINUATION_INDENT_SIZE" value="4"/>
               <option name="TAB_SIZE" value="4"/>
               <option name="USE_TAB_CHARACTER" value="false"/>
               <option name="SMART_TABS" value="false"/>
               <option name="LABEL_INDENT_SIZE" value="0"/>
               <option name="LABEL_INDENT_ABSOLUTE" value="false"/>
               <option name="USE_RELATIVE_INDENTS" value="false"/>
           </value>
       </option>
       <option name="PREFER_LONGER_NAMES" value="false"/>
       <option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="1000"/>
       <option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="1000"/>
       <option name="PACKAGES_TO_USE_IMPORT_ON_DEMAND">
           <value/>
       </option>
       <option name="IMPORT_LAYOUT_TABLE">
           <value>
               <package name="" withSubpackages="true" static="false"/>
               <emptyLine/>
               <package name="" withSubpackages="true" static="true"/>
           </value>
       </option>
       <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_INVALID_TAGS" value="false"/>
       <option name="JD_DO_NOT_WRAP_ONE_LINE_COMMENTS" value="true"/>
       <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false"/>
       <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1"/>
       <option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
       <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1"/>
       <option name="WHILE_ON_NEW_LINE" value="true"/>
       <option name="ALIGN_MULTILINE_PARAMETERS" value="false"/>
       <option name="ALIGN_MULTILINE_FOR" value="false"/>
       <option name="SPACE_AFTER_TYPE_CAST" value="true"/>
       <option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true"/>
       <option name="METHOD_PARAMETERS_WRAP" value="1"/>
       <option name="ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE" value="true"/>
       <option name="LABELED_STATEMENT_WRAP" value="1"/>
       <option name="WRAP_COMMENTS" value="true"/>
       <option name="METHOD_ANNOTATION_WRAP" value="1"/>
       <option name="CLASS_ANNOTATION_WRAP" value="1"/>
       <option name="FIELD_ANNOTATION_WRAP" value="1"/>
       <JavaCodeStyleSettings>
           <option name="CLASS_NAMES_IN_JAVADOC" value="3"/>
       </JavaCodeStyleSettings>
       <XML>
           <option name="XML_LEGACY_SETTINGS_IMPORTED" value="true"/>
       </XML>
       <ADDITIONAL_INDENT_OPTIONS fileType="haml">
           <option name="INDENT_SIZE" value="2"/>
       </ADDITIONAL_INDENT_OPTIONS>
       <codeStyleSettings language="Groovy">
           <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false"/>
           <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1"/>
           <option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
           <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1"/>
           <option name="ALIGN_MULTILINE_PARAMETERS" value="false"/>
           <option name="ALIGN_MULTILINE_FOR" value="false"/>
           <option name="METHOD_PARAMETERS_WRAP" value="1"/>
           <option name="METHOD_ANNOTATION_WRAP" value="1"/>
           <option name="CLASS_ANNOTATION_WRAP" value="1"/>
           <option name="FIELD_ANNOTATION_WRAP" value="1"/>
           <option name="PARENT_SETTINGS_INSTALLED" value="true"/>
           <indentOptions>
               <option name="CONTINUATION_INDENT_SIZE" value="4"/>
           </indentOptions>
       </codeStyleSettings>
       <codeStyleSettings language="HOCON">
           <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1"/>
           <option name="PARENT_SETTINGS_INSTALLED" value="true"/>
       </codeStyleSettings>
       <codeStyleSettings language="JAVA">
           <option name="KEEP_CONTROL_STATEMENT_IN_ONE_LINE" value="false"/>
           <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1"/>
           <option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
           <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1"/>
           <option name="WHILE_ON_NEW_LINE" value="true"/>
           <option name="ALIGN_MULTILINE_PARAMETERS" value="false"/>
           <option name="ALIGN_MULTILINE_FOR" value="false"/>
           <option name="SPACE_BEFORE_ARRAY_INITIALIZER_LBRACE" value="true"/>
           <option name="METHOD_PARAMETERS_WRAP" value="1"/>
           <option name="ARRAY_INITIALIZER_LBRACE_ON_NEXT_LINE" value="true"/>
           <option name="LABELED_STATEMENT_WRAP" value="1"/>
           <option name="METHOD_ANNOTATION_WRAP" value="1"/>
           <option name="CLASS_ANNOTATION_WRAP" value="1"/>
           <option name="FIELD_ANNOTATION_WRAP" value="1"/>
           <option name="PARENT_SETTINGS_INSTALLED" value="true"/>
           <indentOptions>
               <option name="CONTINUATION_INDENT_SIZE" value="4"/>
           </indentOptions>
       </codeStyleSettings>
       <codeStyleSettings language="JSON">
           <option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
           <option name="PARENT_SETTINGS_INSTALLED" value="true"/>
       </codeStyleSettings>
       <codeStyleSettings language="Scala">
           <option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1"/>
           <option name="KEEP_BLANK_LINES_IN_CODE" value="1"/>
           <option name="KEEP_BLANK_LINES_BEFORE_RBRACE" value="1"/>
           <option name="WHILE_ON_NEW_LINE" value="true"/>
           <option name="ALIGN_MULTILINE_PARAMETERS" value="false"/>
           <option name="ALIGN_MULTILINE_FOR" value="false"/>
           <option name="METHOD_PARAMETERS_WRAP" value="1"/>
           <option name="METHOD_ANNOTATION_WRAP" value="1"/>
           <option name="CLASS_ANNOTATION_WRAP" value="1"/>
           <option name="FIELD_ANNOTATION_WRAP" value="1"/>
           <option name="PARENT_SETTINGS_INSTALLED" value="true"/>
           <indentOptions>
               <option name="INDENT_SIZE" value="4"/>
               <option name="CONTINUATION_INDENT_SIZE" value="4"/>
               <option name="TAB_SIZE" value="4"/>
           </indentOptions>
       </codeStyleSettings>
       <codeStyleSettings language="XML">
           <indentOptions>
               <option name="CONTINUATION_INDENT_SIZE" value="4"/>
           </indentOptions>
       </codeStyleSettings>
   </code_scheme>
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org