# EditorConfig helps developers define and maintain consistent
# coding styles between different editors and IDEs
# editorconfig.org
root = true

[*]
# Change these settings to your own preference
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.java]
indent_size = tab
tab_width = 4
ij_java_names_count_to_use_import_on_demand = 2147483647
ij_java_packages_to_use_import_on_demand = unset

# noinspection EditorConfigKeyCorrectness
[*.{kt,kts}]
indent_size = tab
tab_width = 4
max_line_length = 100
ij_kotlin_name_count_to_use_star_import = 2147483647
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
ij_kotlin_packages_to_use_import_on_demand = unset
ktlint_code_style = ktlint_official # intellij_idea or android_studio or ktlint_official (default)
ktlint_function_naming_ignore_when_annotated_with = "Test"

[**/build/**/*.{kt,kts}]
max_line_length = off
ij_kotlin_name_count_to_use_star_import = unset
ij_kotlin_name_count_to_use_star_import_for_members = unset
ij_kotlin_packages_to_use_import_on_demand = kotlinx.serialization, kotlinx.serialization.descriptors, kotlinx.serialization.encoding
insert_final_newline = unset

[*.xml]
tab_width = 4
indent_size = tab
