ktlint v0.44.0 Release Notes
Release Date: 2022-02-15 // about 2 years ago-
๐ Please welcome paul-dingemans as an official maintainer of ktlint!
โ Added
- ๐ Use Gradle JVM toolchain with language version 8 to compile the project
- ๐ Basic tests for CLI (#540)
- โ Add experimental rule for unnecessary parentheses in function call followed by lambda (#1068)
๐ Fixed
- ๐ Fix indentation of function literal (#1247)
- ๐ Fix false positive in rule spacing-between-declarations-with-annotations (#1281)
- ๐ Do not remove imports for same class when different alias is used (#1243)
- ๐ Fix NoSuchElementException for property accessor (
trailing-comma
) (#1280) - ๐ Fix ClassCastException using ktlintFormat on class with KDoc (
no-trailing-spaces
) (#1270) - ๐ Do not remove trailing comma in annotation (#1297)
- ๐ Do not remove import which is used as markdown link in KDoc only (
no-unused-imports
) (#1282) - ๐ Fix indentation of secondary constructor (
indent
) (#1222) - ๐ Custom gradle tasks with custom ruleset results in warning (#1269)
- ๐ Fix alignment of arrow when trailing comma is missing in when entry (
trailing-comma
) (#1312) - ๐ Fix indent of delegated super type entry (
indent
) (#1210) - ๐ Improve indentation of closing quotes of a multiline raw string literal (
indent
) (#1262) - ๐ Trailing space should not lead to delete of indent of next line (
no-trailing-spaces
) (#1334) - ๐ Force a single line function type inside a nullable type to a separate line when the max line length is exceeded (
parameter-list-wrapping
) (#1255) - ๐ A single line function with a parameter having a lambda as default argument does not throw error (
indent
) (#1330) - ๐ Fix executable jar on Java 16+ (#1195)
- ๐ Fix false positive unused import after autocorrecting a trailing comma (#1367)
- ๐ Fix false positive indentation (
parameter-list-wrapping
,argument-list-wrapping
) (#897, #1045, #1119, #1255, #1267, #1319, #1320, #1337 - ๐ Force a single line function type inside a nullable type to a separate line when the max line length is exceeded (
parameter-list-wrapping
) (#1255)
๐ Changed
- ๐ Update Kotlin version to
1.6.0
release - โ Add separate tasks to run tests on JDK 11 - "testOnJdk11"
- ๐ Update Dokka to
1.6.0
release - ๐ Apply ktlint experimental rules on the ktlint code base itself.
- ๐ Update shadow plugin to
7.1.1
release - โ Add Kotlin-logging backed by logback as logging framework (#589)
- โก๏ธ Update Gradle to
7.4
version