Krikri::Lint::NoFreeFormRule
Inherits Krikri::Lint::Rule < Reference < Object
Upstream parity: no-free-form (severity MEDIUM, tags syntax/risk).
Flags module: "some string with k=v" - the free-form calling
convention, where module arguments are crammed into a single
string instead of passed as a mapping. It hides typos (a misspelled
key is silently dropped by the module) and defeats argument
validation, so upstream steers users to the explicit form.
Two exemptions upstream makes:
- include/import actions, whose string is the argument list
- command/shell free-form that carries no
key=option, i.e. a plain command line with nothing to unpack
Constants
Modules whose free form is a command line, where only a key=
option makes it a free-form call worth flagging.
Option names that mark a command/shell free form as carrying module arguments rather than just a command line.
Instance methods
Whether upstream's transform marks the given violation fixed. Transformable rules that do not mark it fixed get an "Rule specific fix not applied for" ERROR logged for the match.
Task-oriented: violations belong to an enclosing task, so a
# noqa: anywhere in that task's body suppresses them.
Upstream's transform rewrites the free-form module call and marks the match fixed, so no "not applied" is logged.