Skip to content
New issue

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

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

Already on GitHub? # to your account

Annotation with entries should not force entries on separate lines #1688

Closed
paul-dingemans opened this issue Oct 31, 2022 · 0 comments · Fixed by #1689
Closed

Annotation with entries should not force entries on separate lines #1688

paul-dingemans opened this issue Oct 31, 2022 · 0 comments · Fixed by #1689
Milestone

Comments

@paul-dingemans
Copy link
Collaborator

Code below is acceptated unchanged by IntelliJ IDEA default formatter:

@[JvmStatic  Provides]
fun foo() = 42

Ktlint 0.48 snapshot rewrites it to:

@[
JvmStatic
Provides
]
fun foo() = 42
@paul-dingemans paul-dingemans added this to the 0.48.0 milestone Oct 31, 2022
paul-dingemans added a commit to paul-dingemans/ktlint that referenced this issue Oct 31, 2022
paul-dingemans added a commit that referenced this issue Nov 2, 2022
* Fix indent of annotation array entry

Closes #1688
shashachu added a commit to shashachu/ktlint that referenced this issue Jan 4, 2023
…ti-line

Similar to pinterest#1688, an array of annotations would be forced to be multi-line if any of the entries had a parameter.
shashachu added a commit to shashachu/ktlint that referenced this issue Jan 4, 2023
…ti-line

Similar to pinterest#1688, an array of annotations would be forced to be multi-line if any of the entries had a parameter.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant