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

Parameter wrapping autocorrect unindents lines after first in lambda block #870

Closed
ephemient opened this issue Aug 28, 2020 · 0 comments · Fixed by #928
Closed

Parameter wrapping autocorrect unindents lines after first in lambda block #870

ephemient opened this issue Aug 28, 2020 · 0 comments · Fixed by #928

Comments

@ephemient
Copy link

Expected Behavior

package test

private fun main() {
    println(
        Runnable {
            println("hello")
            println("world")
        }
    )
}

Observed Behavior

package test

private fun main() {
    println(
        Runnable {
            println("hello")
    println("world")
        }
    )
}

Steps to Reproduce

[*.{kt,kts}]
disabled_rules=indent
package test

private fun main() {
    println(Runnable {
        println("hello")
        println("world")
    })
}

Your Environment

  • Version of ktlint used: 0.38.1
  • Name and version: ktlint --format
  • Version of Gradle used (if applicable):
  • Operating System and version:
  • Link to your project (if it's a public repository):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants