ktlint v0.35.0 Release Notes

Release Date: 2019-10-12 // 12 days ago
  • ➕ 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)

Previous changes from v0.34.2

  • 🛠 Minor bugfix release for 0.34.0. (Note: 0.34.1 deprecated/deleted due to regression in disabled_flags .editorconfig support.)

    ➕ Added

    • 👌 Support for globally disabling rules via --disabled_rules command line flag. (#534)

    🛠 Fixed

    • 👕 Regression with --stdin flag for printAST command (#528)
    • 👕 Regressions with NoUnusedImports rule (#531, #526)
      • Note: this re-introduces #405
    • 👕 Indentation for enums with multi-line initializers (#518)