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

Lambda passed as an argument is forced to be on the same line as the previous argument #490

Closed
petertrr opened this issue Nov 3, 2020 · 0 comments · Fixed by #545
Closed
Assignees
Labels
bug Something isn't working

Comments

@petertrr
Copy link
Member

petertrr commented Nov 3, 2020

Describe the bug

fun foo() {
    foo(
        0,
        { obj -> obj.bar() }
    )
}

=>

fun foo() {
    foo(
            0, { obj -> obj.bar() }
    )
}

Environment information

  • diktat version: 0.1.3
@petertrr petertrr added the bug Something isn't working label Nov 3, 2020
@aktsay6 aktsay6 self-assigned this Nov 17, 2020
aktsay6 added a commit that referenced this issue Nov 17, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Nov 23, 2020
# Conflicts:
#	diktat-rules/src/test/resources/test/smoke/src/main/kotlin/Example1Test.kt
aktsay6 added a commit that referenced this issue Nov 23, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Nov 30, 2020
# Conflicts:
#	diktat-rules/src/test/resources/test/smoke/src/main/kotlin/Example4Expected.kt
#	diktat-rules/src/test/resources/test/smoke/src/main/kotlin/Example4Test.kt
aktsay6 added a commit that referenced this issue Nov 30, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Nov 30, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Nov 30, 2020
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Dec 1, 2020
… as the previous argument (#545)

* bugfix/lambda-forced-to-be-on-same-line(#490)

### What's done:
  * Fixed bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants