-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy path.editorconfig
More file actions
29 lines (24 loc) · 1008 Bytes
/
.editorconfig
File metadata and controls
29 lines (24 loc) · 1008 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
[*]
end_of_line = lf
[*.bat]
end_of_line = crlf
[*.kt]
# We often have block comments representing implementation details after KDocs.
# This feels like an acceptable commenting strategy
ktlint_standard_no-consecutive-comments = disabled
# TODO: move this to detekt when 2.0.0 is stable (handles Kotlin 2.3.21)
ktlint_standard_no-unused-imports = enabled
# These lines add significant verbosity to the codebase. The PR introducing these rules (19817)
# added 2k LOC to the codebase, often quadrupling the number of lines:
#
# PreviewerAction.MARK -> viewModel.toggleMark()
# became:
# PreviewerAction.MARK -> {
# viewModel.toggleMark()
# }
# <blank line>
#
# https://pinterest.github.io/ktlint/latest/rules/standard/#when-entry-bracing
ktlint_standard_when-entry-bracing = disabled
# https://pinterest.github.io/ktlint/latest/rules/standard/#blank-line-between-when-conditions
ktlint_standard_blank-line-between-when-conditions = disabled