-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
54 lines (44 loc) · 1.45 KB
/
.editorconfig
File metadata and controls
54 lines (44 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# EditorConfig for Ktfmt Kotlinlang Style
# https://github.com/facebook/ktfmt
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{kt,kts}]
indent_style = space
indent_size = 4
max_line_length = 120
ij_continuation_indent_size = 4
# Ktfmt Kotlinlang Style settings
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
ij_kotlin_line_comment_at_first_column = false
ij_kotlin_line_comment_add_space = true
ij_kotlin_name_count_to_use_star_import = 9999
ij_kotlin_name_count_to_use_star_import_for_members = 9999
ij_kotlin_keep_blank_lines_in_code = 2
ij_kotlin_keep_blank_lines_in_declarations = 2
ij_kotlin_keep_blank_lines_before_right_brace = 0
ij_kotlin_blank_lines_around_block_when_branches = 0
ij_kotlin_align_multiline_parameters = false
ij_kotlin_continuation_indent_in_parameter_lists = false
ij_kotlin_continuation_indent_for_chained_calls = false
ij_kotlin_continuation_indent_in_supertype_lists = false
ij_kotlin_continuation_indent_in_if_conditions = false
ij_kotlin_wrap_expression_body_functions = 1
ij_kotlin_wrap_elvis_expressions = 1
# Method/function parameters
ij_kotlin_method_parameters_wrap = on_every_item
ij_kotlin_call_parameters_wrap = on_every_item
# Trailing commas
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
[*.{json,yml,yaml}]
indent_size = 2
[*.{xml,html}]
indent_size = 2
[*.properties]
indent_size = 4
[*.md]
trim_trailing_whitespace = false