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