Extend use-in-operator
to contains check in partial rule sets (or set values)
#943
Labels
use-in-operator
to contains check in partial rule sets (or set values)
#943
This rule currently flags locations where
"foo" := bar[_]
can be replaced with"foo" in bar
. We should extend this to cover also the case offoo["bar"]
, whenfoo
is known to be a partial rule or a set value, as usingin
is reasonably considered more idiomatic there too.Avoid
Prefer
The text was updated successfully, but these errors were encountered: