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

Spaces are not inserted after { and before } in lambda expressions #711

Closed
petertrr opened this issue Jan 18, 2021 · 0 comments · Fixed by #712
Closed

Spaces are not inserted after { and before } in lambda expressions #711

petertrr opened this issue Jan 18, 2021 · 0 comments · Fixed by #712
Assignees
Labels
bug Something isn't working

Comments

@petertrr
Copy link
Member

Describe the bug

fun foo() {
    list.map {it.text}
}

should be fixed to

fun foo() {
    list.map { it.text }
}

but it isn't.

Environment information

  • diktat version: 0.3.0
@petertrr petertrr added the bug Something isn't working label Jan 18, 2021
@aktsay6 aktsay6 self-assigned this Jan 18, 2021
aktsay6 added a commit that referenced this issue Jan 18, 2021
### What's done:
  * Fixed bugs
  * Added more tests
aktsay6 added a commit that referenced this issue Jan 19, 2021
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Jan 19, 2021
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Jan 19, 2021
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Jan 20, 2021
### What's done:
  * Fixed bugs
  * Added more tests
aktsay6 added a commit that referenced this issue Jan 20, 2021
### What's done:
  * Fixed bugs
aktsay6 added a commit that referenced this issue Jan 21, 2021
# Conflicts:
#	diktat-rules/src/main/kotlin/generated/WarningNames.kt
aktsay6 added a commit that referenced this issue Jan 21, 2021
…sions (#711) (#712)

* Bugfix. Spaces are not inserted after { and before } in lambda expressions

### What's done:
  * Fixed bugs
  * Added more tests
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
Development

Successfully merging a pull request may close this issue.

2 participants