website/reference/commands/feature-engineering/gate.md
Use xpd feature-engineering gate in the recorded feature review.
Commit the fix and pass its ID. A mechanical fix removes a cited finding without increasing the finding count. A design fix changes a file that owns a cited item. Both rerun passing checks and compare compatible fold protocols. Kept edits can reopen answers.
Example
console
| 1 | $ xpd feature-engineering gate --help |
| 2 | Gate a fix: run the checks, time `--bench` when set, count lines and compare the findings with the commit before it. Exit 1 when the fix is not kept |
| 3 | |
| 4 | Usage: xpd feature-engineering gate [OPTIONS] <FIX> |
| 5 | |
| 6 | Arguments: |
| 7 | <FIX> |
| 8 | |
| 9 | Options: |
| 10 | --working-tree Gate current working-tree changes as a snapshot without committing |
| 11 | --staged Gate only staged index changes as a snapshot without committing |
| 12 | --commit <REV> Gate this one commit against its parent, leaving out what other writers commit or edit in the same checkout |
| 13 | --format <FORMAT> Output format. Default: text on a terminal, json otherwise [possible values: text, json] |
| 14 | -h, --help Print help |