Summary: Metasyntactic variable name
# Using metasyntactic names
foo := ["bar", "baz"]
# Using names relevant to the context
roles := ["developer", "admin"]
Using "foo", "bar", "baz" and other metasyntactic variables is occasionally useful in examples, but should be avoided in production policy.
This linter rules forbids any metasyntactic variable names, as listed by Wikipedia:
While there are no recommended exceptions to this rule, you could choose to allow metasyntactic variables in tests, or
perhaps code meant to be used in examples. When using a
proper suffix for tests, like
simply configure an ignore pattern with the configuration of this rule:
If you'd rather use your own list of forbidden variable names or patterns, see the naming convention rule.
This linter rule provides the following configuration options:
# one of "error", "warning", "ignore"
If you think you've found a problem with this rule or its documentation, would like to suggest improvements, new rules,
or just talk about Regal in general, please join us in the
#regal channel in the Styra Community