Repository navigation
Expand file tree
/
Copy path.editorconfig
More file actions
57 lines (46 loc) · 1.69 KB
/
Copy path.editorconfig
File metadata and controls
57 lines (46 loc) · 1.69 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
48
49
50
51
52
53
54
55
56
57
# Top-level EditorConfig configuration file
root = true
# Global defaults
[*]
charset = utf-8
end_of_line = crlf
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 4
# Kotlin-specific rules
[*.{kt,kts}]
max_line_length = 120
ktlint_experimental = true
continuation_indent_size = 4
insert_final_newline = true
ktlint_standard_argument-list-wrapping = disabled
ktlint_standard_function-naming = disabled
# Import organization (IDE and KtLint will respect this)
ij_kotlin_imports_layout = *, java.**, javax.**, kotlin.**, android.**, kotlinx.**
ij_kotlin_allow_wildcard_imports = false
# Android Studio formatter settings that KtLint can also understand
ij_kotlin_code_style_defaults = KOTLIN_OFFICIAL
# --- ▼ここから修正▼ ---
# 引数/パラメータの折り返し設定
# IDEのUIで「Chop down if long (長い場合は折り返す)」に相当します。
# 長い場合は、各引数が1行ずつに分割されます。
ij_kotlin_call_parameters_wrap = on_every_item
ij_kotlin_method_parameters_wrap = on_every_item
# 括弧の改行設定 (上記と合わせて使うとより一般的です)
ij_kotlin_call_parameters_new_line_after_left_paren = true
ij_kotlin_call_parameters_right_paren_on_new_line = true
ij_kotlin_method_parameters_new_line_after_left_paren = true
ij_kotlin_method_parameters_right_paren_on_new_line = true
# メソッドチェーンの折り返し
# IDEのUIで「Wrap if long (長い場合は折り返す)」に相当します。
ij_kotlin_method_call_chain_wrap = normal
# --- ▲ここまで修正▲ ---
# XML files
[*.xml]
indent_style = space
indent_size = 4
# Gradle files
[*.{gradle,gradle.kts}]
indent_style = space
indent_size = 4