chore: Disable new ktlint formatting rules (#795)

ktlint 1.3.0 promoted some experimental rules to the standard set, and
they some significant code churn if applied:

- Rewriting class signatures
- Rewriting conditions
- Rewriting single statement functions

Disable them for the time being.
This commit is contained in:
Nik Clayton 2024-07-03 12:20:07 +02:00 committed by GitHub
parent d2841677de
commit 39d9db92d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 0 deletions

View File

@ -21,6 +21,18 @@ ij_java_class_count_to_use_import_on_demand = 999
ij_kotlin_allow_trailing_comma = true ij_kotlin_allow_trailing_comma = true
ij_kotlin_allow_trailing_comma_on_call_site = true ij_kotlin_allow_trailing_comma_on_call_site = true
# 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
max_line_length = off max_line_length = off
[*.{yml,yaml}] [*.{yml,yaml}]