Is there a lint check to prevent not invoking a la...
# announcements
l
Is there a lint check to prevent not invoking a lambda such as doing
onClick
instead of
onClick()
when
val onClick: () -> Unit
?
A lint check should be able to verify not assigned not invoked lambda reference
I’m not saying that language has to prevent that, but a lint warning would be great
The side-effecty getter doesn’t seem like a good pattern to follow
I’m looking for a lint rule / warning to check if someone is not invoking a lambda and not assigning it.
I’m guessing there is no such check currently
l
Please, suggest this feature on kotl.in/issue I reported a similar one in the past and it was addressed: https://youtrack.jetbrains.com/issue/KT-23710