Reference
wf check
Check the project — every finding a build would report — and write nothing
wf check [options]
Runs every check a build runs — the parser, the structure, the types, the lints and the config — and writes nothing.
$ wf check
$ wf check --format sarif > wf.sarif
$ wf check --deny-warnings
wf check is fast enough for a pre-commit hook. It exits 1 on a finding that would stop a build and 0 otherwise, and prints No problems in NAME. when there are none. A check that needs the written output — the security policy read back over the pages — runs only in wf build.
See also: Diagnostics.
Options
| Option | Type | Meaning |
|---|---|---|
--dir -d DIR | path | Project directory (default: current directory) |
--format FORMAT | human | json | sarif | github | How findings are written: |
--deny-warnings | flag | Fail on a warning too |
--allow-output-outside | flag | Accept a |