-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.editorconfig
44 lines (33 loc) · 1.25 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
44
root = true
[*]
charset = utf-8
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.{java,kt}]
ktlint_code_style = android_studio
ij_kotlin_imports_layout = *
# Disable wildcard imports
ij_kotlin_name_count_to_use_star_import = 999
ij_kotlin_name_count_to_use_star_import_for_members = 999
ij_java_class_count_to_use_import_on_demand = 999
# Require trailing comma
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
# https://pinterest.github.io/ktlint/latest/rules/standard/#class-signature
# Was re-writing class signatures causing spurious diffs.
ktlint_standard_class-signature = disabled
# https://pinterest.github.io/ktlint/latest/rules/standard/#condition-wrapping
# Was re-writing conditions causing spurious diffs.
ktlint-standard_condition-wrapping = disabled
# https://pinterest.github.io/ktlint/latest/rules/standard/#function-expression-body
# Was re-writing functions to expression bodies, causing spurious diffs.
ktlint_standard_function-expression-body = disabled
max_line_length = off
[*.{yml,yaml}]
indent_size = 2
# Disable ktlint on generated source code, see
# https://github.com/JLLeitschuh/ktlint-gradle/issues/746
[**/build/generated/source/**]
ktlint = disabled