Am I missing something? If I am required to overri...
# detekt
c
Am I missing something? If I am required to override methods because I implement some interface (like a click/interaction listener or something) detekt yells at me saying EmptyFunctionBlock. Wouldn't it make sense not to yell at people for empty function blocks if they are overrides?
n
The docs provide a workaround (Add a
// no-op
comment in the block) or you could just return Unit if the method doesn’t have a return type. The docs also mention a
ignoreOverridden
option