All Versions
64
Latest Version
Avg Release Cycle
28 days
Latest Release
81 days ago

Changelog History
Page 4

  • v0.14.0

    November 30, 2017

    🔄 Changed

    🛠 Fixed

    • 👕 Maven integration (#117).
  • v0.13.0

    November 28, 2017

    ➕ Added

    • 👕 no-line-break-before-assignment (#105),
      chain-wrapping (#23) (when wrapping chained calls ., ?. and ?: should be placed on the next line),
      range-spacing (no spaces around range (..) operator) rules.
    • 🖨 --print-ast CLI option which can be used to dump AST of the file
      👕 (see README / Creating a ruleset / AST for more details)
    • 0️⃣ --color CLI option for colored output (where supported, e.g. --print-ast, default (plain) reporter, etc)

    🔄 Changed

    • .editorconfig property resolution.
      👕 An explicit [*.{kt,kts}] is not required anymore (ktlint looks for sections containing *.kt (or *.kts) and will fallback to [*] whenever property cannot be found elsewhere).
      Also, a search for .editorconfig will no longer stop on first (closest) .editorconfig (unless it contains root=true).
    • max-line-length rule to assume max_line_length=100 when ktlint --android ... is used
      💅 (per Android Kotlin Style Guide).
    • kotlin-compiler version to 1.2.0 (from 1.1.51).

    🛠 Fixed

    • 👕 no-empty-class-body auto-correction at the end of file (#109).
    • 👕 max-line-length rule when applied to KDoc (#112)
      (previously KDoc was subject to max-line-length even though regular comments were not).
    • Spacing around = in @annotation|s (op-spacing).
    • Spacing around generic type parameters of functions (e.g. fun <T>f(): T {} -> fun <T> f(): T {}).
    • 👕 no-consecutive-blank-lines not triggering at the end of file (when exactly 2 blank lines are present) (#108)
    • indent continuation_indent_size % indent_size != 0 case (#76)
    • indent rule skipping first parameter indentation check.
    • final-newline rule in the context of kotlin script.
    • Git hook (previously files containing space character (among others) in their names were ignored)
    • 👕 Exit code when file cannot be linted due to the invalid syntax or internal error.
  • v0.12.1

    November 13, 2017

    🛠 Fixed

    • A conflict between org.eclipse.aether:aether-*:1.1.0 and org.eclipse.aether:aether-*:1.0.0.v20140518 (#100).
  • v0.12.0

    November 10, 2017

    ➕ Added

    • 💅 --android (-a) CLI option (turns on Android Kotlin Style Guide compatibility)
      👕 (right now it's used only by ktlint --apply-to-idea).

    🔄 Changed

    • ktlint --apply-to-idea to account for indent_size & continuation_indent_size in .editorconfig (if any).

    ✂ Removed

    • 👕 ktlint-intellij-idea-integration binary (deprecated in 0.9.0).

    🛠 Fixed

    • "Unused import" false positive (component1..component5).
  • v0.11.1

    October 26, 2017

    🛠 Fixed

    • 👕 --reporter's output handling (previously parent directory was expected to exist) (#97).
  • v0.11.0

    October 25, 2017

    ➕ Added

    • 👕 no-blank-line-before-rbrace rule (#65).

    🛠 Fixed

    • Redundant space inserted between } and :: (curly-spacing).
  • v0.10.2

    October 25, 2017

    🚀 This release contains changes that were meant for 0.11.0 and so it was retagged as such.

  • v0.10.1

    October 22, 2017

    🛠 Fixed

    • 👕 Redundant space inserted between } and [key]/(...) (curly-spacing) (#91).
  • v0.10.0

    October 10, 2017

    ➕ Added

    • 💅 Git hook to automatically check files for style violations on commit
      👕 (execute ktlint --install-git-pre-commit-hook to install).
    • Ability to specify multiple reporters
      👕 (output can be controlled with --reporter=<name>,output=<path/to/file>) (#71).
    • 👌 Support for indent_size=unset (.editorconfig) (#70).

    🛠 Fixed

    • ( { formatting
      👕 (previously both ( { and ({ were accepted as correct, while only ({ should be) (curly-spacing rule) (#80).
    • if\nfn {}\nelse formatting (curly-spacing rule).
    • max_line_length=off & max_line_length=unset handling (.editorconfig).

    🔄 Changed

    • kotlin-compiler version to 1.1.51 (from 1.1.3-2).
    • ktlint --apply-to-idea to include OPTIMIZE_IMPORTS_ON_THE_FLY=true.
  • v0.9.2

    September 01, 2017

    🛠 Fixed

    • 👕 : Unit = formatting (: Unit is no longer dropped when = is used) (#77).