The release of Kotlin 2.1 is the primary reason for publishing this release earlier than planned. Because of the removal of some language elements in Kotlin 2.1, the embedded Kotlin compiler in KtLint blocked Kotlinter users from upgrading to Kotlin 2.1.
🆕 Features
-
Add missing space between
fun
keyword and identifier when latter is wrapped between backticks - #2890, by @paul-dingemans -
Add configuration setting for constant names in
property-naming
rule - #2893, by @paul-dingemans -
Allow backing property to be defined in the companion object (
backing-property-naming
) - #2895, by @paul-dingemans
🔧 Fixes
-
Ignore multi dollar string interpolation prefix in
string-template-indent
rule - #2888, by @paul-dingemans -
Wrap the expression body in case
.editorconfig
propertyktlint_function_signature_body_expression_wrapping
is set toalways
- #2873, by @paul-dingemans -
Fix false positive when empty parameter list is in between trailing lambda's of a nested call expression - #2891, by @paul-dingemans
-
Do not wrap a context receiver in a function parameter type reference - #2892, by @paul-dingemans
-
Allow comment before parameter list in function literal (
function-literal
) - #2894, by @paul-dingemans
📦 Dependencies
-
chore(deps): update plugin com.gradle.develocity to v3.18.2 - #2865, by @renovate[bot]
-
chore(deps): update dependency gradle to v8.11.1 - #2875, by @renovate[bot]
-
fix(deps): update dependency io.github.hakky54:logcaptor to v2.10.0 - #2874, by @renovate[bot]
-
fix(deps): update dependency org.jetbrains.kotlin:kotlin-gradle-plugin to v2.1.0-rc2 - #2871, by @renovate[bot]
-
fix(deps): update dependency io.github.oshai:kotlin-logging-jvm to v7.0.3 - #2883, by @renovate[bot]
-
fix(deps): update kotlin monorepo to v2.1.0 - #2880, by @renovate[bot]
-
fix(deps): update dependency com.github.ajalt.clikt:clikt to v5.0.2 - #2886, by @renovate[bot]
-
chore(deps): update plugin org.gradle.toolchains.foojay-resolver-convention to v0.9.0 - #2887, by @renovate[bot]
-
fix(deps): update dependency dev.drewhamilton.poko:poko-gradle-plugin to v0.18.0 - #2889, by @renovate[bot]