Pattern: Missing use of anonymous object as lambda
Issue: -
An anonymous object that does nothing other than the implementation of a single method can be used as a lambda.
Example of incorrect code:
object : Foo {
override fun bar() {
}
}
Example of correct code:
Foo {
}