module

Krikri::Lint::Formatter

Byte-for-byte reproduction of upstream's match formatters (ansiblelint/formatters/init.py) for the formats krikri-lint exposes. Upstream builds these by pushing BBCode markup through a console renderer; the escape sequences it ends up emitting are spelled out here directly, including the stray trailing resets its markup leaves unbalanced.

Constants

BRACKETED = /\[[\w.]+\]/
RULE_DOC_URL = "https://ansible.readthedocs.io/projects/lint/rules/"

Class methods

brief(v : Violation, colored : Bool) : String

Upstream's default "brief" formatter: two lines per match, with the rule id hyperlinked, the path in magenta and the optional task description dimmed, followed by a blank line.

Source
parseable(v : Violation, colored : Bool) : String

Upstream's ParseableFormatter (aka -p).

Source
quiet(v : Violation, colored : Bool) : String

Upstream's QuietFormatter (-f quiet): rule id, space, position.

Source
rule_url(violation : Violation) : String
Source