-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.editorconfig
43 lines (33 loc) · 1.26 KB
/
.editorconfig
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
root=true
[*]
indent_style=space
end_of_line=lf
charset=utf-8
trim_trailing_whitespace=true
insert_final_newline=true
[*.{java,kt,kts,scala,rs,xml,kt.spec,kts.spec}]
indent_size=4
max_line_length=120
[{*.kt,*.kts}]
ktlint_code_style=android_studio
kotlin_imports_layout=ascii
ij_kotlin_allow_trailing_comma=true
ij_kotlin_allow_trailing_comma_on_call_site=true
ij_kotlin_line_break_after_multiline_when_entry=false
ktlint_experimental=enabled
ktlint_function_naming_ignore_when_annotated_with=Composable
ktlint_standard_chain-wrapping=disabled
ktlint_standard_multiline-expression-wrapping=disabled
ktlint_standard_class-signature=disabled
ktlint_standard_function-signature=disabled
ktlint_function_signature_body_expression_wrapping=default
ktlint_standard_function-expression-body=disabled
disabled_rules=import-ordering
[*.md]
trim_trailing_whitespace=false
# Starting from ktlint 0.34.2 There is a problem with import "import-ordering" rule - ktlint contradicts
# default AS import arrangement rules, so we have to disable ktlint it.
# See https://github.com/pinterest/ktlint/issues/527
# Since IDE complains about unknown `disabled_rules` key we have to disable it as well:
# noinspection EditorConfigKeyCorrectness
disabled_rules=no-wildcard-imports,experimental:annotation