Does a rule exist for warning on an unused return ...
# ktlint
b
Does a rule exist for warning on an unused return value?
I haven't been able to find anything when searching, thought I'd double check.
Playing a little with writing a rule, but is possible to look up a function definition from a call? That is, if I find a
CALL_EXPRESSION
to function
foo
, could i look up any annotations on
foo
? Maybe this would have to fall under a compiler plugin instead of a ktlint rule?
t
isn't it goes more into direction of code quality rather then code style?
b
Perhaps, yeah. I'm just looking to add it in some places and trying to see what options were available.
t
most probably you need to look into #detekt rules direction
b
Cool I'll check that out.