Krikri::Lint::LintTask
View over one task mapping node, shared by all task-oriented rules.
Resolves the action module the way Ansible does: the first key that
is not a task modifier keyword, with ansible.builtin. /
ansible.legacy. prefixes stripped for the bare module name.
Constructors
Instance methods
The module-name key node; upstream matchtask rules report violations at this key's line/column.
Upstream's Task.str: the task's name, falling back to the module it calls plus its free-form arguments. Used for the "Task/Handler: ..." detail the default formatter appends.
Last line belonging to this task, as a human reads it: the task's body runs until a blank line or a dedent back to its own indentation. Node end marks cannot be used - a scalar's end mark points at the next token, so neighbouring tasks would come out overlapping.
Blank lines inside a block scalar belong to the task and do not
end it; covered (see YamlText.scalar_continuation_lines) marks
them.
The name: value node, for rules that point at the name text
(upstream's name[casing]/name[template] do).