Skip to content

feat(fmt): add rs fmt command - #124

Merged
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-command
Jul 31, 2026
Merged

feat(fmt): add rs fmt command#124
chenjiahan merged 1 commit into
mainfrom
chenjiahan/feat-fmt-command

Conversation

@chenjiahan

Copy link
Copy Markdown
Member

This PR makes rs fmt usable by connecting the existing formatter config, file discovery, and serial runner through a lazily loaded CLI adapter. It supports write, check, and list-different output with stable exit codes, keeps Prettier config and ignore files isolated from Rstack configuration, and treats empty results as a successful no-op. Parallel execution, persistent cache, and plugin resolution remain deferred.

@chenjiahan
chenjiahan merged commit 0af3478 into main Jul 31, 2026
3 checks passed
@chenjiahan
chenjiahan deleted the chenjiahan/feat-fmt-command branch July 31, 2026 07:28
@coderabbitai

coderabbitai Bot commented Jul 31, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: bfebb366-5913-4448-a3ee-2a6933466fd4

📥 Commits

Reviewing files that changed from the base of the PR and between b9ffdec and 62fffd1.

📒 Files selected for processing (4)
  • README.md
  • packages/rstack/src/cli/commands.ts
  • packages/rstack/src/fmt/cli.ts
  • packages/rstack/tests/cli/fmt/index.test.ts

📝 Walkthrough

Walkthrough

The change adds rs fmt to CLI help and command dispatch. The formatter CLI now loads and resolves configuration, discovers files, executes formatting, reports file results, supports check-mode summaries, and sets exit codes. Integration tests cover formatting behavior, configuration and ignore rules, reporting modes, errors, and empty file matches. The README updates the command description.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chenjiahan/feat-fmt-command

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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