forked from hugegraph/hugegraph-sync
chore: migrate the `hg-style.xml` to `.editorconfig` (#2561)
This commit is contained in:
parent
e82a91ca1a
commit
37e71c4858
|
|
@ -21,6 +21,10 @@ root = true
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
|
max_line_length = 100
|
||||||
|
ij_wrap_on_typing = true
|
||||||
|
ij_visual_guides = 100
|
||||||
|
|
||||||
|
|
||||||
[*.{java,xml,py}]
|
[*.{java,xml,py}]
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
|
@ -32,3 +36,64 @@ continuation_indent_size = 8
|
||||||
|
|
||||||
[*.md]
|
[*.md]
|
||||||
max_line_length = off
|
max_line_length = off
|
||||||
|
|
||||||
|
[*.java]
|
||||||
|
ij_java_doc_add_p_tag_on_empty_lines = true
|
||||||
|
ij_java_doc_do_not_wrap_if_one_line = true
|
||||||
|
ij_java_annotation_parameter_wrap = normal
|
||||||
|
ij_java_align_multiline_annotation_parameters = true
|
||||||
|
ij_java_class_count_to_use_import_on_demand = 100
|
||||||
|
ij_java_names_count_to_use_import_on_demand = 100
|
||||||
|
ij_java_imports_layout = $*, |, java.**, |, javax.**, |, org.**, |, com.**, |, *
|
||||||
|
|
||||||
|
ij_java_line_comment_at_first_column = false
|
||||||
|
ij_java_align_multiline_chained_methods = true
|
||||||
|
ij_java_align_multiline_parameters_in_calls = true
|
||||||
|
ij_java_align_multiline_binary_operation = true
|
||||||
|
ij_java_align_multiline_assignment = true
|
||||||
|
ij_java_align_multiline_ternary_operation = true
|
||||||
|
ij_java_align_multiline_throws_list = true
|
||||||
|
ij_java_align_multiline_extends_list = true
|
||||||
|
ij_java_align_multiline_array_initializer_expression = true
|
||||||
|
|
||||||
|
ij_java_call_parameters_wrap = normal
|
||||||
|
ij_java_method_parameters_wrap = normal
|
||||||
|
ij_java_resource_list_wrap = normal
|
||||||
|
ij_java_extends_list_wrap = normal
|
||||||
|
ij_java_throws_list_wrap = normal
|
||||||
|
ij_java_method_call_chain_wrap = normal
|
||||||
|
ij_java_binary_operation_wrap = normal
|
||||||
|
ij_java_ternary_operation_wrap = normal
|
||||||
|
ij_java_for_statement_wrap = normal
|
||||||
|
ij_java_array_initializer_wrap = normal
|
||||||
|
ij_java_assignment_wrap = normal
|
||||||
|
ij_java_assert_statement_wrap = normal
|
||||||
|
ij_java_if_brace_force = if_multiline
|
||||||
|
ij_java_do_while_brace_force = always
|
||||||
|
ij_java_while_brace_force = if_multiline
|
||||||
|
ij_java_for_brace_force = if_multiline
|
||||||
|
ij_java_wrap_long_lines = true
|
||||||
|
ij_java_parameter_annotation_wrap = normal
|
||||||
|
ij_java_enum_constants_wrap = split_into_lines
|
||||||
|
|
||||||
|
ij_java_keep_blank_lines_in_declarations = 1
|
||||||
|
ij_java_keep_blank_lines_in_code = 1
|
||||||
|
ij_java_keep_blank_lines_between_package_declaration_and_header = 1
|
||||||
|
ij_java_keep_blank_lines_before_right_brace = 1
|
||||||
|
ij_java_blank_lines_around_class = 1
|
||||||
|
ij_java_blank_lines_after_class_header = 1
|
||||||
|
|
||||||
|
ij_smart_tabs = true
|
||||||
|
|
||||||
|
[*.xml]
|
||||||
|
max_line_length = 120
|
||||||
|
ij_visual_guides = 120
|
||||||
|
ij_xml_text_wrap = off
|
||||||
|
ij_xml_space_inside_empty_tag = true
|
||||||
|
|
||||||
|
[.yaml]
|
||||||
|
ij_yaml_spaces_within_braces = false
|
||||||
|
ij_yaml_spaces_within_brackets = false
|
||||||
|
|
||||||
|
[.properties]
|
||||||
|
ij_properties_keep_blank_lines = true
|
||||||
|
|
|
||||||
|
|
@ -1,106 +0,0 @@
|
||||||
<!--
|
|
||||||
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
||||||
contributor license agreements. See the NOTICE file distributed with
|
|
||||||
this work for additional information regarding copyright ownership.
|
|
||||||
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
||||||
(the "License"); you may not use this file except in compliance with
|
|
||||||
the License. You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
-->
|
|
||||||
|
|
||||||
<!-- This file could be imported in IDEA for correct code-style -->
|
|
||||||
<code_scheme name="hugegraph-style" version="173">
|
|
||||||
<option name="LINE_SEPARATOR" value="
" />
|
|
||||||
<option name="RIGHT_MARGIN" value="100" />
|
|
||||||
<option name="WRAP_WHEN_TYPING_REACHES_RIGHT_MARGIN" value="true" />
|
|
||||||
<option name="SOFT_MARGINS" value="100" />
|
|
||||||
<JavaCodeStyleSettings>
|
|
||||||
<option name="JD_P_AT_EMPTY_LINES" value="true" />
|
|
||||||
<option name="JD_DO_NOT_WRAP_ONE_LINE_COMMENTS" value="true" />
|
|
||||||
<option name="ANNOTATION_PARAMETER_WRAP" value="1" />
|
|
||||||
<option name="ALIGN_MULTILINE_ANNOTATION_PARAMETERS" value="true" />
|
|
||||||
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="100" />
|
|
||||||
<option name="NAMES_COUNT_TO_USE_IMPORT_ON_DEMAND" value="100" />
|
|
||||||
<option name="IMPORT_LAYOUT_TABLE">
|
|
||||||
<value>
|
|
||||||
<package name="" withSubpackages="true" static="true" />
|
|
||||||
<emptyLine />
|
|
||||||
<package name="java" withSubpackages="true" static="false" />
|
|
||||||
<emptyLine />
|
|
||||||
<package name="javax" withSubpackages="true" static="false" />
|
|
||||||
<emptyLine />
|
|
||||||
<package name="org" withSubpackages="true" static="false" />
|
|
||||||
<emptyLine />
|
|
||||||
<package name="com" withSubpackages="true" static="false" />
|
|
||||||
<emptyLine />
|
|
||||||
<package name="" withSubpackages="true" static="false" />
|
|
||||||
</value>
|
|
||||||
</option>
|
|
||||||
</JavaCodeStyleSettings>
|
|
||||||
<codeStyleSettings language="JAVA">
|
|
||||||
<option name="LINE_COMMENT_AT_FIRST_COLUMN" value="false" />
|
|
||||||
<option name="ALIGN_MULTILINE_CHAINED_METHODS" value="true" />
|
|
||||||
<option name="ALIGN_MULTILINE_PARAMETERS_IN_CALLS" value="true" />
|
|
||||||
<option name="ALIGN_MULTILINE_BINARY_OPERATION" value="true" />
|
|
||||||
<option name="ALIGN_MULTILINE_ASSIGNMENT" value="true" />
|
|
||||||
<option name="ALIGN_MULTILINE_TERNARY_OPERATION" value="true" />
|
|
||||||
<option name="ALIGN_MULTILINE_THROWS_LIST" value="true" />
|
|
||||||
<option name="ALIGN_MULTILINE_EXTENDS_LIST" value="true" />
|
|
||||||
<option name="ALIGN_MULTILINE_ARRAY_INITIALIZER_EXPRESSION" value="true" />
|
|
||||||
<option name="CALL_PARAMETERS_WRAP" value="1" />
|
|
||||||
<option name="METHOD_PARAMETERS_WRAP" value="1" />
|
|
||||||
<option name="RESOURCE_LIST_WRAP" value="1" />
|
|
||||||
<option name="EXTENDS_LIST_WRAP" value="1" />
|
|
||||||
<option name="THROWS_LIST_WRAP" value="1" />
|
|
||||||
<option name="METHOD_CALL_CHAIN_WRAP" value="1" />
|
|
||||||
<option name="BINARY_OPERATION_WRAP" value="1" />
|
|
||||||
<option name="TERNARY_OPERATION_WRAP" value="1" />
|
|
||||||
<option name="FOR_STATEMENT_WRAP" value="1" />
|
|
||||||
<option name="ARRAY_INITIALIZER_WRAP" value="1" />
|
|
||||||
<option name="ASSIGNMENT_WRAP" value="1" />
|
|
||||||
<option name="ASSERT_STATEMENT_WRAP" value="1" />
|
|
||||||
<option name="IF_BRACE_FORCE" value="1" />
|
|
||||||
<option name="DOWHILE_BRACE_FORCE" value="3" />
|
|
||||||
<option name="WHILE_BRACE_FORCE" value="1" />
|
|
||||||
<option name="FOR_BRACE_FORCE" value="1" />
|
|
||||||
<option name="WRAP_LONG_LINES" value="true" />
|
|
||||||
<option name="PARAMETER_ANNOTATION_WRAP" value="1" />
|
|
||||||
<option name="ENUM_CONSTANTS_WRAP" value="2" />
|
|
||||||
<option name="WRAP_ON_TYPING" value="1" />
|
|
||||||
<option name="SOFT_MARGINS" value="100" />
|
|
||||||
<option name="RIGHT_MARGIN" value="100" />
|
|
||||||
<option name="KEEP_BLANK_LINES_IN_DECLARATIONS" value="1" />
|
|
||||||
<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_AROUND_CLASS" value="1" />
|
|
||||||
<option name="BLANK_LINES_AFTER_CLASS_HEADER" value="1" />
|
|
||||||
<indentOptions>
|
|
||||||
<option name="SMART_TABS" value="true" />
|
|
||||||
</indentOptions>
|
|
||||||
</codeStyleSettings>
|
|
||||||
<codeStyleSettings language="XML">
|
|
||||||
<option name="RIGHT_MARGIN" value="120" />
|
|
||||||
<option name="WRAP_ON_TYPING" value="1" />
|
|
||||||
<option name="SOFT_MARGINS" value="120" />
|
|
||||||
</codeStyleSettings>
|
|
||||||
<XML>
|
|
||||||
<option name="XML_TEXT_WRAP" value="0" />
|
|
||||||
<option name="XML_LEGACY_SETTINGS_IMPORTED" value="true" />
|
|
||||||
<option name="XML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
||||||
</XML>
|
|
||||||
<Properties>
|
|
||||||
<option name="KEEP_BLANK_LINES" value="true" />
|
|
||||||
</Properties>
|
|
||||||
<codeStyleSettings language="yaml">
|
|
||||||
<option name="SPACE_WITHIN_BRACKETS" value="false" />
|
|
||||||
<option name="SPACE_WITHIN_BRACES" value="false" />
|
|
||||||
</codeStyleSettings>
|
|
||||||
</code_scheme>
|
|
||||||
Loading…
Reference in New Issue