-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.editorconfig
More file actions
36 lines (27 loc) · 1016 Bytes
/
.editorconfig
File metadata and controls
36 lines (27 loc) · 1016 Bytes
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
# .editorconfig
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
[*.{kt,kts}]
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
ij_kotlin_packages_to_use_import_on_demand = kotlinx.coroutines.*,android.media.*
indent_style = space
indent_size = 4
max_line_length = 120
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
# Allow longer lines and wildcard imports in unit tests
[**/test/**.{kt,kts}]
max_line_length = 160
ij_kotlin_packages_to_use_import_on_demand = kotlinx.coroutines.**,org.junit.Assert.**,org.mockito.kotlin.**,androidx.test.espresso.matcher.ViewMatchers.*
# Same for Android instrumented tests
[**/androidTest/**.{kt,kts}]
max_line_length = 160
ij_kotlin_packages_to_use_import_on_demand = kotlinx.coroutines.**,org.junit.Assert.**,org.mockito.kotlin.**,androidx.test.espresso.matcher.ViewMatchers.*
# Build scripts can be a bit looser
[**/*.gradle.kts]
indent_size = 2
max_line_length = 160