Skip to content
This repository has been archived by the owner on Jun 4, 2024. It is now read-only.

Releases: hovinen/kotlin-auto-formatter

v0.7.9: Fix the formatting of single-line if-else expressions

07 Oct 16:08
Compare
Choose a tag to compare
  • Fixed a regression in the previous release which resulted in an extra space being introduced in single-line if-else expressions.

v0.7.8: Better support comments on if-expressions

07 Oct 15:48
Compare
Choose a tag to compare
  • Fixed some cases where adding comments around if-else expressions would cause syntactically valid code not to be recognised.

v0.7.7: Support file-level annotations

05 Apr 08:05
Compare
Choose a tag to compare
Pre-release
  • Added support for file-level annotations so that they are properly recognised and formatted according to the style guide.

v0.7.6: Fix column limit violation on certain dot qualified expressions

26 Mar 16:55
Compare
Choose a tag to compare
  • Fixed a case where the formatter would not insert a line break before the dot in a dot-qualified expression with a long identifier, leading to an unnecessary violation of the column limit.

v0.7.5: Fix formatting of function parameters of type function

18 Mar 10:40
Compare
Choose a tag to compare
  • Fixed incorrect formatting when the parameters in a function declaration include a parameter with type function which has modifiers.

v0.7.4: Fixes for compliance with the Kotlin Coding Conventions

17 Mar 20:20
Compare
Choose a tag to compare
  • The formatter now prefers to break within a parameter list in a function declaration rather than before the return type when the entire function declaration doesn't fit on one line, in line with the Kotlin coding conventions.
  • The formatter now forces a line break after any annotation with a parameter list, in line with the Kotlin coding conventions.
  • Also fixed array access expressions so that the formatter does not prefer to break within them.

v0.7.3: Fix support for do-while loops

01 Mar 18:42
Compare
Choose a tag to compare
Pre-release
  • Properly support do-while loops to correct any problems with their existing formatting. Also fixes the problem that do-while loops would mess up the formatting of lambda expressions which contain them.

v0.7.2

19 Feb 21:03
Compare
Choose a tag to compare
v0.7.2 Pre-release
Pre-release
  • Fixed a bug where the column limit would be ignored when whitespace is followed by an unbroken sequence of tokens.

v0.7.1

18 Feb 20:39
Compare
Choose a tag to compare
v0.7.1 Pre-release
Pre-release
  • Fixed the treatment of KDoc directly on class properties
  • Removed the extra blank lines which appear when all imports are removed from a file
  • Fixed the treatment of whitespace inside the parentheses of if, while, when, and for statements
  • Forced consistent placement of line breaks at the start end end of blocks

v0.7.0: Support preserving newlines in marked code blocks

01 Feb 19:53
Compare
Choose a tag to compare
  • Added support for preserving newlines in code blocks demarcated by specific comments.
  • Fixed formatting of empty class bodies where the opening curly brace exactly hits the column limit.
  • Fixed possible column limit violation in a delegated super type entry.
  • Treat is expressions as a block so that the formatter doesn't prefer to break inside them.