eval_string_array_only_in

Diagnostic `nanook::eval::string_array_only_in`

Summary

string arrays only support `in` and `not in`

Help

use in or not in when comparing against a string array

Details

When this fires

A string-array RHS was used with an operator other than in or not in. Even though is works against a single string, the array form is reserved for set membership.

What to check

For pattern matching across many candidates, use matches with a single regex instead.

# broken
expr = "host.name is [\"web-1\", \"web-2\"]"
# fixed
expr = "host.name in [\"web-1\", \"web-2\"]"

See @/docs/nanook-expr.md for the full set of string operators.