Reference
wf fix
Fix every finding that has a fix — or every one of a code — as `wf check` and the editor offer it, and say what is left
wf fix [options]
Writes: the project's source files.
Preview: --dry-run says what it would do without doing it.
Applies every fix the compiler is certain of — the fix the editor offers first — and writes the files.
$ wf fix
$ wf fix --code V07
$ wf fix --dry-run
A fix that overlaps another, or that the first fixes make way for, is taken on a second pass, and passes repeat until nothing more changes. wf fix then lists what is left: findings with no certain fix, which a person decides. wf check lists them too.
See also: Diagnostics.
Options
| Option | Type | Meaning |
|---|---|---|
--dir -d DIR | path | Project directory (default: current directory) |
--code CODE | text | Only this code's findings: |
--dry-run | flag | Write nothing; say what would change |