Skip to content

feat(fmt): add --no-error-on-unmatched-pattern - #178

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-no-error-on-unmatched-pattern
Aug 4, 2026
Merged

feat(fmt): add --no-error-on-unmatched-pattern#178
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-no-error-on-unmatched-pattern

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

Summary

rs fmt exits with code 2 when no supported files are selected, which can block pre-commit workflows where an empty match is expected.

This PR adds --no-error-on-unmatched-pattern and its camel-case alias to exit successfully without diagnostics when no supported files match or all matching files are ignored. It also aligns the help output and documents the behavior in English and Chinese.

Related Links

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: d84858e
Status: ✅  Deploy successful!
Preview URL: https://3dd1fa04.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-feat-fmt-no-error.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit bb1ac5c into main Aug 4, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-no-error-on-unmatched-pattern branch August 4, 2026 14:47
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