You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling it with builder { someValue } creates an ambuguity since the lambda could have either zero or one parameters. Disambuiguating with builder { -> someValue } is necessary here, but results in a Arrow is redundant when parameter list is empty (standard:function-literal) violation
The text was updated successfully, but these errors were encountered:
Currently ktlint removes the arrow in a zero parameter lambda by default. I'm working with Java code that has a lot of method overloads like:
Calling it with
builder { someValue }
creates an ambuguity since the lambda could have either zero or one parameters. Disambuiguating withbuilder { -> someValue }
is necessary here, but results in aArrow is redundant when parameter list is empty (standard:function-literal)
violationThe text was updated successfully, but these errors were encountered: