Skip to content

fix(fmt): error when no files match - #177

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-fmt-no-files-error
Aug 4, 2026
Merged

fix(fmt): error when no files match#177
chenjiahan merged 1 commit into
mainfrom
chenjiahan/fix-fmt-no-files-error

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR makes rs fmt exit with code 2 when discovery selects no supported files, preventing missing or fully ignored targets from silently succeeding.

The error identifies the requested paths or globs and behaves consistently across write, check, and list-different modes.

Related Links

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying rstack-cli with  Cloudflare Pages  Cloudflare Pages

Latest commit: 56b735a
Status: ✅  Deploy successful!
Preview URL: https://68c2573b.rstack-cli.pages.dev
Branch Preview URL: https://chenjiahan-fix-fmt-no-files.rstack-cli.pages.dev

View logs

@chenjiahan
chenjiahan merged commit 4626c4f into main Aug 4, 2026
4 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/fix-fmt-no-files-error branch August 4, 2026 14:23
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