ktlint v0.34.0 Release Notes

Release Date: 2019-07-15 // 7 months 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)