https://kotlinlang.org logo
#ktlint
Title
# ktlint
b

bbaldino

01/06/2020, 5:23 PM
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

tapchicoma

01/07/2020, 7:21 PM
isn't it goes more into direction of code quality rather then code style?
b

bbaldino

01/07/2020, 7:22 PM
Perhaps, yeah. I'm just looking to add it in some places and trying to see what options were available.
t

tapchicoma

01/07/2020, 7:22 PM
most probably you need to look into #detekt rules direction
b

bbaldino

01/07/2020, 7:25 PM
Cool I'll check that out.
4 Views