-
Notifications
You must be signed in to change notification settings - Fork 0
/
.editorconfig
36 lines (35 loc) · 1.37 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
[*.{kt,kts}]
# Disable indent checking until https://youtrack.jetbrains.com/issue/KT-23275 gets resolved:
indent_size = unset
max_line_length = 112
# Ktlint-specific properties
# See: https://github.com/pinterest/ktlint#custom-ktlint-specific-editorconfig-properties
#
# filename:
# Caught more precisely (with desired exceptions) with detekt.
#
# import-ordering:
# ktlint's order is not supported (yet) by IntelliJ.
# See:
# - https://github.com/pinterest/ktlint/issues/527
# - https://youtrack.jetbrains.com/issue/KT-10974
#
# no-wildcard-imports:
# Not desired. We want them for Java statics and Enum members.
#
# experimental:annotation:
# Not desired.
#
# experimental:multiline-if-else, multiline-if-else:
# Not desired.
#
# experimental:annotation-spacing:
# See: https://github.com/pinterest/ktlint/issues/873
#
# experimental:trailing-comma, trailing-comma
# Not desired, because we want to allow trailing commas
#
# For some rules, we list both the one with and the one without the "experimental:" prefix because the
# IntelliJ plugin needs one, the Gradle plugin needs the other. This is probably due to the IntelliJ plugin
# using a different version of the library.
disabled_rules = filename, import-ordering, no-wildcard-imports, experimental:annotation, experimental:multiline-if-else, multiline-if-else, experimental:annotation-spacing, experimental:trailing-comma, trailing-comma