Skip to content

Commit baf05d8

Browse files
authored
Encode CONTRIBUTING.md style guide to .editorconfig (#9515)
1 parent c180b4f commit baf05d8

File tree

1 file changed

+46
-9
lines changed

1 file changed

+46
-9
lines changed

.editorconfig

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,54 @@ end_of_line=lf
77
insert_final_newline=true
88
indent_style=space
99
indent_size=2
10-
11-
[*.json]
12-
indent_style=space
13-
indent_size=2
10+
ij_continuation_indent_size=4
1411

1512
[*.java]
16-
indent_style=space
17-
indent_size=2
18-
continuation_indent_size=4
13+
ij_java_class_count_to_use_import_on_demand = 99
14+
ij_java_insert_inner_class_imports = false
15+
ij_java_imports_layout = |,$*,|,*,|
16+
ij_java_layout_on_demand_import_from_same_package_first = true
17+
ij_java_layout_static_imports_separately = true
18+
ij_java_names_count_to_use_import_on_demand = 99
19+
ij_java_packages_to_use_import_on_demand = java.awt.*,javax.swing.*
20+
21+
22+
ij_java_block_comment_add_space = false
23+
ij_java_block_comment_at_first_column = false
24+
ij_java_line_comment_add_space = true
25+
ij_java_line_comment_add_space_on_reformat = false
26+
ij_java_line_comment_at_first_column = false
27+
28+
29+
[*.groovy]
30+
ij_groovy_class_count_to_use_import_on_demand = 99
31+
ij_groovy_imports_layout = $*,|,*,|
32+
ij_groovy_names_count_to_use_import_on_demand = 99
33+
ij_groovy_packages_to_use_import_on_demand = java.awt.*,javax.swing.*
34+
35+
ij_groovy_block_comment_add_space = false
36+
ij_groovy_block_comment_at_first_column = false
37+
ij_groovy_line_comment_add_space = true
38+
ij_groovy_line_comment_add_space_on_reformat = false
39+
ij_groovy_line_comment_at_first_column = false
40+
41+
[{*.kt,*.kts}]
42+
ij_kotlin_import_nested_classes = false
43+
ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,^
44+
45+
ij_kotlin_name_count_to_use_star_import = 99
46+
ij_kotlin_name_count_to_use_star_import_for_members = 99
47+
ij_kotlin_packages_to_use_import_on_demand = kotlinx.android.synthetic.**,io.ktor.**
48+
49+
ij_kotlin_block_comment_add_space = false
50+
ij_kotlin_block_comment_at_first_column = false
51+
ij_kotlin_line_comment_add_space = true
52+
ij_kotlin_line_comment_add_space_on_reformat = false
53+
ij_kotlin_line_comment_at_first_column = false
54+
1955

2056
[{*.yml,*.yaml}]
21-
indent_style=space
22-
indent_size=2
57+
ij_yaml_line_comment_add_space = true
58+
ij_yaml_line_comment_add_space_on_reformat = false
59+
ij_yaml_line_comment_at_first_column = false
2360

0 commit comments

Comments
 (0)