github pinterest/ktlint 0.44.0

latest releases: 1.2.1, 1.2.0, 1.1.1...
2 years ago

[0.44.0] - 2022-02-15

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

Don't miss a new ktlint release

NewReleases is sending notifications on new releases.