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

Enhance logic of NewlinesRule for chained calls #326

Closed
petertrr opened this issue Sep 25, 2020 · 0 comments · Fixed by #346
Closed

Enhance logic of NewlinesRule for chained calls #326

petertrr opened this issue Sep 25, 2020 · 0 comments · Fixed by #346
Assignees
Labels
enhancement New feature or request

Comments

@petertrr
Copy link
Member

petertrr commented Sep 25, 2020

We will need to change this logic:

 allProperties.filter { 
    predicate(it)
}
.foo()
.bar()

is valid, and so is

 allProperties
.filter { 
    predicate(it)
}
.foo()
.bar()

too.

If first call in chain is multiline lambda, then it is allowed to start on the same line as initial receiver.

Originally posted by @akuleshov7 in #318 (comment)

@petertrr petertrr added the enhancement New feature or request label Sep 29, 2020
@aktsay6 aktsay6 linked a pull request Oct 2, 2020 that will close this issue
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants