Skip to content

feat(fmt): add --ignore-unknown - #190

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-ignore-unknown
Aug 5, 2026
Merged

feat(fmt): add --ignore-unknown#190
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-ignore-unknown

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

Broad formatter invocations can contain only files whose types rs fmt does not support, causing the command to fail even when those files are intentionally handled elsewhere. This PR adds --ignore-unknown and its camel-case alias for file and stdin input, while unmatched paths remain errors unless --no-error-on-unmatched-pattern is enabled. It also documents the option and covers direct and rs staged integrations.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 502cba6
Status: ✅  Deploy successful!
Preview URL: https://0bfa814e.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-fmt-ignore-u.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 05a31d5 into main Aug 5, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-ignore-unknown branch August 5, 2026 05:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant