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

ArgumentListWrappingRule is confused inside some lambda blocks #1112

Closed
ephemient opened this issue Mar 16, 2021 · 0 comments · Fixed by #1177
Closed

ArgumentListWrappingRule is confused inside some lambda blocks #1112

ephemient opened this issue Mar 16, 2021 · 0 comments · Fixed by #1177
Labels

Comments

@ephemient
Copy link

Expected Behavior

fun main() {
    Unit.run {
        println(
            "hello, world!"
        )
    }
}

should not report any indentation errors.

Observed Behavior

test.kt:4:13: Unexpected indentation (expected 8, actual 12) (experimental:argument-list-wrapping)
test.kt:5:9: Unexpected indentation (expected 4, actual 8) (experimental:argument-list-wrapping)

Steps to Reproduce

Your Environment

  • Version of ktlint used: 0.41.0
  • Name and version (or code for custom task) of integration used (Gradle plugin, Maven plugin, command line, custom Gradle task): command line
  • Version of Gradle used (if applicable):
  • Operating System and version: Linux 5.11
  • Link to your project (if it's a public repository):
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants