ktlint v0.34.0 Release Notes

Release Date: 2019-07-15 // over 4 years ago
  • โž• Added

    • ๐Ÿ‘Œ Support for Kotlin 1.3.41
    • ๐Ÿ‘Œ Support for globally disabling rules via custom disabled_rules property in .editorconfig (#503)
    • ๐Ÿ‘• experimental:no-empty-first-line-in-method-block (#474)
    • โœ… Unit tests for ruleset providers

    โฌ†๏ธ Upgraded

    • ๐Ÿ‘• AssertJ from 3.9.0 to 3.12.2 (#520)

    Enabled

    • ๐Ÿ‘• Final newline by default (#446)
    • no-wildcard-import (Re-enabled after temporarily disabling in 0.33.0)
    • ๐Ÿ‘• experimental:annotation (#509)
    • experimental:multiline-if-else (no autocorrection)
    • ๐Ÿ“ฆ experimental:package-name (currently only disallows underscores in package names)

    ๐Ÿ—„ Deprecated

    • ๐Ÿ‘• MavenDependencyResolver. Scheduled to be removed in 0.35.0 ([#468])(#468)
    • ๐Ÿ‘• --install-git-pre-commit-hook flag; use installGitPreCommitHook subcommand instead (#487)
    • ๐Ÿ‘• --print-ast flag; use printAST subcommand instead (#500)

    โœ‚ Removed

    • ๐Ÿ‘Œ Support for --ruleset-repository and --ruleset-update flags

    ๐Ÿ›  Fixed

    • ๐Ÿ‘• import-ordering will now refuse to format import lists that contain top-level comments (#408)
    • ๐Ÿ‘• no-unused-imports reporting false negatives or false positives in some cases (#405) and (#506)
    • ๐Ÿ‘• experimental:indent incorrectly formatting a lambda's closing brace (#479)