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

Fix indent when property value is wrapped to next line #2095

Closed
nacyolsa opened this issue Jun 28, 2023 · 0 comments · Fixed by #2097
Closed

Fix indent when property value is wrapped to next line #2095

nacyolsa opened this issue Jun 28, 2023 · 0 comments · Fixed by #2097

Comments

@nacyolsa
Copy link

Expected Behavior

Autoformatting should not reformat below line to incorrect state

private val deferredMessageQueueSubscription = DeferredMessageQueueSubscription(uri = ServiceBusUri("deferredQueueTestUri"))

Observed Behavior

Autoformatting moves DeferredMessageQueueSubscription(uri = ServiceBusUri("deferredQueueTestUri")) to the next line and as the results it looks like this:

    private val deferredMessageQueueSubscription = 
    DeferredMessageQueueSubscription(uri = ServiceBusUri("deferredQueueTestUri"))

Steps to Reproduce

Autoformatting should allow to reproduce this. My Detekt config:

formatting:
    excludes: [ '**/build/**' ]
    MaximumLineLength:
        active: false
    NoBlankLineBeforeRbrace:
        active: false
    Indentation:
        active: false
    ArgumentListWrapping:
        active: false
    MultiLineIfElse:
        active: false

Your Environment

@paul-dingemans paul-dingemans changed the title Object moved to the next line Fix indent when property value is wrapped to next line Jun 28, 2023
@paul-dingemans paul-dingemans added this to the 0.50.0 milestone Jun 28, 2023
paul-dingemans added a commit that referenced this issue Jun 28, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants