Join Slack
Does a rule exist for warning on an unused return value?
# ktlint
b
bbaldino
01/06/2020, 5:23 PM
Does a rule exist for warning on an unused return value?
bbaldino
01/06/2020, 5:29 PM
I haven't been able to find anything when searching, thought I'd double check.
bbaldino
01/07/2020, 12:44 AM
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.
11
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by