class

Krikri::Lint::RiskyOctalRule

Inherits Krikri::Lint::Rule < Reference < Object

Upstream parity: ansible-lint's risky-octal (severity VERY_HIGH, tags formatting). Flags integer mode values that were meant as octal (e.g. mode: 755) by checking the same sanity conditions upstream's is_invalid_permission uses.

Constants

MODULES = ["assemble", "copy", "file", "ini_file", "lineinfile", "replace", "synchronize", "template", "unarchive"] of ::String
YAML11_BOOL_FALSE = ["no", "No", "NO", "false", "False", "FALSE", "off", "Off", "OFF"] of ::String
YAML11_BOOL_TRUE = ["yes", "Yes", "YES", "true", "True", "TRUE", "on", "On", "ON"] of ::String

Upstream sees these as Python True after YAML 1.1 resolution (PyYAML/ruamel's resolver has no single-letter y/n). A True mode is 1, a False mode is 0 - both isinstance int to the rule.

Instance methods

applies_to
Source
check(file : PositionedFile, violations : Array(Violation)) : Nil
Source
severity
Source
tags
Source
task_scoped?

Task-oriented: violations belong to an enclosing task, so a # noqa: anywhere in that task's body suppresses them.

Source