vsg-bridge-ls/doc/experimental-rule-fix.md

942 B

Experimental individual rule correction

Start the bridge with --experimental-rule-fix to offer one clearly labelled Quick Fix per fixable VSG (rule, line) pair. The mode is disabled by default while its editor behavior and usefulness are evaluated.

Opening the action menu uses only the bridge's validated in-memory diagnostics and starts no VSG process. Selecting an action sends the current unsaved buffer and one --fix_rule RULE:LINE selector to a single VSG process, rejects stale document versions, computes a whole-line edit, and asks the editor to apply it. Several findings from the same rule on the same line share one action because VSG's public selector cannot distinguish them more precisely.

This flag is independent of --experimental-multi-rule-line-fix. Enable both to compare individual and grouped corrections. Whole-document formatting and source.fixAll.vsg remain available without either experimental flag.