This repository has been archived by the owner on Jun 4, 2024. It is now read-only.
Releases: hovinen/kotlin-auto-formatter
Releases · hovinen/kotlin-auto-formatter
v0.7.9: Fix the formatting of single-line if-else expressions
- 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
- 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
- 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
- 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
- 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
- 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
- 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
v0.7.1
- 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
- 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.