* Add more editor configs and move ktlint config to it (mihonapp/mihon#1731)
(cherry picked from commit 34d1e6fa278846dd8eb6ea82c936818d4610d3c2)
* more ktlint config
* fix compile
* restore comment-wrapping
* restore all of them
* disable in gradle.kts
* cleanup
* remove filenamktlint_standard_filename
* fix filename
* remove unused EhAssets
* ktlint_standard_multiline-expression-wrapping
* property-naming & function-naming
* ktlint_standard_argument-list-wrapping
* fix argument-list-wrapping
* Improve in case source is null
related to commit 343cd372
* comment
* comment
* comment
* comment
* comment
* comment
* comment
* comment
* Revert "Improve in case source is null"
This reverts commit 08e317bb075b4b634f0c6f19f11eb78b99406e59.
* Revert "remove unused EhAssets"
This reverts commit e2cfc3e0c2b8d5b8bac41f2dfc4d9baef332f83e.
---------
Co-authored-by: AntsyLich <59261191+AntsyLich@users.noreply.github.com>
35 lines
1 KiB
INI
35 lines
1 KiB
INI
root = true
|
|
|
|
[*]
|
|
charset = utf-8
|
|
indent_size = 2
|
|
indent_style = space
|
|
insert_final_newline = true
|
|
trim_trailing_whitespace = true
|
|
|
|
[*.xml]
|
|
indent_size = 4
|
|
|
|
# noinspection EditorConfigKeyCorrectness
|
|
[*.{kt,kts}]
|
|
indent_size = 4
|
|
max_line_length = 120
|
|
|
|
ij_kotlin_allow_trailing_comma = true
|
|
ij_kotlin_allow_trailing_comma_on_call_site = true
|
|
ij_kotlin_name_count_to_use_star_import = 2147483647
|
|
ij_kotlin_name_count_to_use_star_import_for_members = 2147483647
|
|
|
|
ktlint_code_style = intellij_idea
|
|
ktlint_function_naming_ignore_when_annotated_with = Composable
|
|
ktlint_standard_class-signature = disabled
|
|
ktlint_standard_discouraged-comment-location = disabled
|
|
ktlint_standard_function-expression-body = disabled
|
|
ktlint_standard_function-signature = disabled
|
|
|
|
# Avoid ktlint format messy code from SY
|
|
ktlint_standard_max-line-length = disabled
|
|
ktlint_standard_comment-wrapping = disabled
|
|
ktlint_standard_type-argument-comment = disabled
|
|
ktlint_standard_value-argument-comment = disabled
|
|
ktlint_standard_value-parameter-comment = disabled
|