Home

dev / openkara

publicthedavidweng/OpenKara· sync paused
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(hooks): stop passing oxfmt-ignored src-tauri files to the pre-commit hook (#193)

2 months ago

b2ec4f3
Authored
Davy7/25/2026, 11:03:33 AM
A commit staging only src-tauri files matched by the oxfmt glob (e.g. a
catalog snapshot bump: src-tauri/catalog/*.json) fails at pre-commit:
src-tauri is entirely in .oxfmtrc.json ignorePatterns, so oxfmt receives
only ignored files and exits 2 with 'Expected at least one target file'.
Exclude src-tauri/ in lefthook to mirror the formatter's own ignore —
those files must never be reformatted anyway (catalog snapshots are
byte-exact by contract).

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>

Parent7e36fec

1 file changed
  • lefthook.yml+4−1