2023-02-04 19:58:53 +01:00
|
|
|
root = true
|
|
|
|
|
|
|
|
[*]
|
|
|
|
charset = utf-8
|
|
|
|
indent_size = 4
|
|
|
|
indent_style = space
|
|
|
|
insert_final_newline = true
|
|
|
|
trim_trailing_whitespace = true
|
|
|
|
|
2023-09-02 23:16:29 +02:00
|
|
|
[*.{java,kt}]
|
2024-01-08 23:26:46 +01:00
|
|
|
ktlint_code_style = android_studio
|
|
|
|
|
|
|
|
ij_kotlin_imports_layout = *
|
|
|
|
|
|
|
|
# Disable wildcard imports
|
2023-04-10 14:26:10 +02:00
|
|
|
ij_kotlin_name_count_to_use_star_import = 999
|
|
|
|
ij_kotlin_name_count_to_use_star_import_for_members = 999
|
|
|
|
ij_java_class_count_to_use_import_on_demand = 999
|
2024-01-08 23:26:46 +01:00
|
|
|
|
2023-09-02 23:16:29 +02:00
|
|
|
# Require trailing comma
|
|
|
|
ij_kotlin_allow_trailing_comma = true
|
|
|
|
ij_kotlin_allow_trailing_comma_on_call_site = true
|
2023-04-10 14:26:10 +02:00
|
|
|
|
2024-07-03 12:20:07 +02:00
|
|
|
# https://pinterest.github.io/ktlint/latest/rules/standard/#class-signature
|
|
|
|
# Was re-writing class signatures causing spurious diffs.
|
|
|
|
ktlint_standard_class-signature = disabled
|
|
|
|
|
|
|
|
# https://pinterest.github.io/ktlint/latest/rules/standard/#condition-wrapping
|
|
|
|
# Was re-writing conditions causing spurious diffs.
|
|
|
|
ktlint-standard_condition-wrapping = disabled
|
|
|
|
|
|
|
|
# https://pinterest.github.io/ktlint/latest/rules/standard/#function-expression-body
|
|
|
|
# Was re-writing functions to expression bodies, causing spurious diffs.
|
|
|
|
ktlint_standard_function-expression-body = disabled
|
|
|
|
|
2024-01-08 23:26:46 +01:00
|
|
|
max_line_length = off
|
|
|
|
|
2023-02-04 19:58:53 +01:00
|
|
|
[*.{yml,yaml}]
|
|
|
|
indent_size = 2
|
2024-01-23 20:27:25 +01:00
|
|
|
|
|
|
|
# Disable ktlint on generated source code, see
|
|
|
|
# https://github.com/JLLeitschuh/ktlint-gradle/issues/746
|
|
|
|
[**/build/generated/source/**]
|
|
|
|
ktlint = disabled
|