ktlint v0.36.0 Release Notes

Release Date: 2019-12-03 // 6 months ago
  • ➕ Added

    • 👕 HTML reporter (#641)
    • 👕 Experimental rule to lint enum entry names (#638)
    • 👕 @Suppress("RemoveCurlyBracesFromTemplate") now respected (#263)

    ⬆️ Upgraded

    • 👕 Gradle version to 5.6.2 (#616)
    • 👕 Kotlin to 1.3.60 (#658)

    🛠 Fixed

    • 👕 .git directory now discovered instead of hardcoded (#623)
    • 👕 Several bugs with the experimental annotation rule (#628) (#642) (#654) (#624)
    • 👍 Allow newline after lambda return type (#643)
    • 👍 Allow empty first line in a function that returns an anonymous object (#655)
    • 👕 Indentation with lambda argument (#627)
    • 👕 ktlint can now lint UTF-8 files with BOM (#630
    • 👕 Indentation with newline before return type (#663)
    • 👕 Build/tests on Windows (#640)
    • 👍 Allow whitespace after ( followed by a comment (#664)

Previous changes from v0.35.0

  • ➕ Added

    • 👌 Support for specifying color for output via --color-name command line flag. (#585)
    • 👌 Support for custom rulesets and providers on Java 9+ (#573)

    🗄 Deprecated

    • 👕 --apply-to-idea flag; use applyToIDEA subcommand instead (#554)
    • 👕 --apply-to-idea-project flag; use applyToIDEAProject subcommand instead (#593)
    • 👕 0.0.0-SNAPSHOT builds; snapshot builds are now versioned, e.g. 0.35.0-SNAPSHOT (#588)
      • Note: When using the new snapshot builds, you may need to add an explicit dependency on kotlin-compiler-embeddable to your ruleset project.

    ✂ Removed

    • 👌 Support for loading 3rd party rulesets via Maven (#566)

    ⬆️ Upgraded

    • 👕 Kotlin version to 1.3.50 (#565) (#611)

    🛠 Fixed

    • 🐛 Bugs with spacing in experimental AnnotationRule (#552) (#601
    • 👕 Brackets would be removed from empty companion object (#600)
    • 🐛 Bugs with experimental IndentationRule (#597) (#599)
    • 👕 Erroneous space between } and ] (#596)
    • 👕 Spacing around multiplication sign in lambdas (#598)
    • 👕 --version output with gradle-built JAR (#613)