Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unexpected change in Kotlinlang formatting #490

Closed
akheron opened this issue Jun 26, 2024 · 1 comment
Closed

Unexpected change in Kotlinlang formatting #490

akheron opened this issue Jun 26, 2024 · 1 comment

Comments

@akheron
Copy link

akheron commented Jun 26, 2024

ktfmt v0.51 with Kotlinlang formatting changed how the closing parenthesis of a multiline function call is placed.

Before:

foo(
    1,
    2
)

After:

foo(
    1,
    2)

There's no mention of this change in the changelog and it seems to go against Kotlinlang conventions. Was the change intentional or is this a bug?

@akheron
Copy link
Author

akheron commented Jul 2, 2024

It seems that the (still unreleased) commit cec9b50 fixes this by turning on trailing comma management for Kotlinlang.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant