-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.editorconfig
More file actions
47 lines (37 loc) · 1.55 KB
/
.editorconfig
File metadata and controls
47 lines (37 loc) · 1.55 KB
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
45
46
47
# indicate this is the root of the project
root = true
[*.{kt,java,xml,gradle,md}]
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
insert_final_newline = true
end_of_line = lf
[*.{kt,kts}]
# Ktlint-specific rules to align with ktlint formatting
ktlint_function_naming_ignore_when_annotated_with = Composable
# License header enforcement
# Note: Using insert_final_newline property to trigger license header check
# See: https://pinterest.github.io/ktlint/latest/rules/experimental/#license-header-set
ktlint_experimental_license-header-file = license-header.txt
ktlint_experimental = enabled
# Enable ktlint standard rules for chain wrapping
# This ensures dot operators stay at the end of lines when wrapping method chains
ktlint_standard_chain-wrapping = enabled
ktlint_standard_wrapping = enabled
# IntelliJ/Android Studio Kotlin code style settings
# IMPORTANT: These settings attempt to align Android Studio's formatter with ktlint
# However, Android Studio's formatter has limitations and cannot fully match ktlint
# For bulk formatting operations, always use: ./gradlew ktlintFormat
# Method call chain wrapping - keep dot at the end of the line
ij_kotlin_method_call_chain_wrap = off
ij_kotlin_wrap_first_method_in_call_chain = false
# Continuation indent
ij_continuation_indent_size = 4
# Trailing commas
ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true
# Blank lines
ij_kotlin_blank_lines_around_block_when_branches = 0
# Line wrapping
ij_kotlin_line_break_after_multiline_when_entry = false