Commit 2c7b214
committed
fix(lefthook): add --no-error-on-unmatched-pattern to oxfmt
oxfmt ignores certain files (lock files, CHANGELOGs, snapshots) via its
built-in rules. When only such files are staged, oxfmt exits with code 2
because no target files remain after its ignore rules are applied.
Adding --no-error-on-unmatched-pattern makes oxfmt exit 0 in this case,
preventing false hook failures.1 parent 85f42cb commit 2c7b214
1 file changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | | - | |
| |||
0 commit comments