You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The first example would be worth attempting. Short term, the primary goal should be to support expressions commonly passed to attributes like count.
Recursive evaluation of complex attribute values is a deeper issue than this rule, e.g. see #1257. Providing a helper function that visits each value expression within collection types is its own exercise with potential for use in many rules.
Introduction
Thanks for adding this rule, but unfortunately it only picks up the most trivial cases.
For example, it picks up this:
but not this:
nor this:
I guess it needs to implement more complex recursion for parsing into expressions.
It may also need to check for comparison with empty maps, e.g.
var.peering_connections != {}
.Expected Behavior
All cases of comparison to empty list (or map) are highlighted by the rule.
The text was updated successfully, but these errors were encountered: