facebook / ktfmt

A program that reformats Kotlin source code to comply with the common community standard for Kotlin code conventions.
https://facebook.github.io/ktfmt/
Apache License 2.0
933 stars 78 forks source link

Treat @sample tag as a paragraph when formatting #475

Closed omarismail94 closed 5 months ago

omarismail94 commented 5 months ago

Tested: Added unit test

Also compiled the JAR and tested it running:

 java -jar ./ktfmt-0.50-SNAPSHOT-jar-with-dependencies.jar --kotlinlang-style --do-not-order-doc-tags compose/runtime/runtime-saveable/src/commonMain/kotlin/androidx/compose/runtime/saveable/RememberSaveable.kt

and it did not re-order the kdcoc tags in the kotlin file, as expected

These are the changes that would happen in AndroidX as a result:

https://android-review.git.corp.google.com/c/platform/frameworks/support/+/3117811

Fixed: Issue #406

facebook-github-bot commented 5 months ago

@hick209 has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.