All notable changes to the ktfmt project (starting on v0.51) should be documented in this file.
The format is based on Keep a Changelog.
- Comments respecting max line width (#511)
- Exception while parsing property accessor on Kotlin 2.0.20-Beta2+ (#513)
- Updated Google Java Format to 1.23.0 (https://github.com/facebook/ktfmt/commit/ed949e89eea22843ac10d4fb91685453754abd25)
- IntelliJ plugin crash (#501)
- Ordering of
@property
and@param
in KDoc (#498) - Annotation in return expressions (#497)
- KotlinLang style also managing trailing commas (#216, #442)
- Converted IntelliJ plugin to Kotlin (#502)
- More stability tests (#488)
- Custom profile in plugin settings, mirroring Gradle/Maven plugins (#503)
- Created CHANGELOG.md
- Added --help option to CLI (#477)
- Preserves blank spaces between when clauses (#342)
- Named the default style as
Formatter.META_FORMAT
/--meta-style
(https://github.com/facebook/ktfmt/commit/96a7b1e2539eef43044f676f60400d22265fd115) FormattingOptions
constructor parameters order was changed (https://github.com/facebook/ktfmt/commit/520706e6d010d48619781d7113e5b1522f07a2ba)
- Compilation issues with online formatter (https://github.com/facebook/ktfmt/commit/8605080cb0aadb7eaba20f3b469d6ddafe32c941)
- Removing valid semicolons (#459)
- Incorrect detection of unused
assign
import (#411)
- Deleted
Formatter.DROPBOX_FORMAT
/--dropbox-style
(BREAKING CHANGE) (https://github.com/facebook/ktfmt/commit/4a393bb8c1156a4a0fd1ab736c02ca8dbd39a969) - Deleted
FormattingOptions.Style
enum (https://github.com/facebook/ktfmt/commit/7edeff14c3738427e53427eb6e39675dc30d1d05)