Krikri::Lint::Fixer
Applies rule fixes to the files violations were reported on, then writes back the changed ones. Mirrors upstream's Transformer: matches whose rule is fixable and whose rule id/tags intersect the --fix write list get fixed; fixed matches are dropped from the report and do not affect the exit code.
Constants
The log renderer's tag pattern recognizes [\w.]+ groups as
(unknown) markup tags; sub-tags with other characters (like
yaml[trailing-spaces]) are printed verbatim without the stray
closing-tag artifact.
Constructors
Class methods
Mirrors upstream Transformer.effective_write_set: "none" resets, "all" enables everything.
Instance methods
Applies rule fixes to violations' files and writes back the changed ones. Mirrors upstream's Transformer: matches whose rule is fixable and whose rule id/tags intersect the --fix write list get fixed. Returns the paths of files that changed, so the caller can re-run the checks instead of trusting the pre-fix report (upstream drops fixed matches; re-running is strictly more honest and also drops violations resolved incidentally by another rule's fix, e.g. an fqcn hit resolved by the shell-key rename).
Whether upstream's transform marks this violation fixed: such matches are dropped from the post-fix report even when krikri's own line edits differ from upstream's re-serialization.
The matches upstream's transformer would log "Rule specific fix not applied for:" for: ones whose rule is TransformMixin (transformable?), enabled under the --fix write set, and not marked fixed by the transform. Mirrors the transformer's per-file sorted(matches) order.