Krikri::Lint::VarNamingRule
Inherits Krikri::Lint::Rule < Reference < Object
Upstream parity: ansible-lint's var-naming rule family
(severity MEDIUM, tags idiom). Checks var identifiers in play
vars, task vars, set_fact keys, and register against Ansible's
reserved names and the ^[a-z_][a-z0-9_]*$ pattern, plus
no-role-prefix: keys in role defaults/vars files, keys on
playbook roles: entries, and vars/set_fact/register on
include_role/import_role tasks must use the role's name as
prefix (FQCN role names skip the prefix/pattern checks).
Constants
ansible.vars.reserved.get_reserved_names() - stable core set.
Keys of a play's roles: entry that are not role variables
(compatibility surface: the documented play keywords).
Instance methods
Task-oriented: violations belong to an enclosing task, so a
# noqa: anywhere in that task's body suppresses them.