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

Report an error on unclosed comments #520

Closed nreid260 closed 3 weeks ago

nreid260 commented 3 weeks ago

Otherwise formatting succeeds and moves all subsequent code into the comment too. This is especially bad for nested comments, which have a surprising syntax.

nreid260 commented 3 weeks ago

@hick209

facebook-github-bot commented 3 weeks ago

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

facebook-github-bot commented 3 weeks ago

@hick209 merged this pull request in facebook/ktfmt@32cdc10ff50049354f1b71b5b0881693c9d5c25b.