-
-
Couldn't load subscription status.
- Fork 732
feat(cli): expose formatWithErrors via --format-with-errors flag #7719
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(cli): expose formatWithErrors via --format-with-errors flag #7719
Conversation
🦋 Changeset detectedLatest commit: 558586c The changes in this PR will be included in the next version bump. This PR includes changesets to release 14 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughIntroduces CLI support for the formatter option via a new --format-with-errors flag, enabling formatting even when syntax errors are present. Updates the formatter configuration to expose this flag through bpaf. Adds tests for both format and check commands to validate behaviour when the flag is enabled, asserting file rewriting and capturing snapshots. Includes a changeset for @biomejs/biome indicating a minor version update and documenting the new flag with example usage. No changes to exported/public entity declarations. Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (5)
📒 Files selected for processing (4)
🚧 Files skipped from review as they are similar to previous changes (3)
🧰 Additional context used📓 Path-based instructions (4)crates/biome_*/**📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/tests/**📄 CodeRabbit inference engine (CLAUDE.md)
Files:
**/*.{rs,toml}📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
**/*.rs📄 CodeRabbit inference engine (CONTRIBUTING.md)
Files:
🧬 Code graph analysis (1)crates/biome_cli/tests/commands/check.rs (3)
🔇 Additional comments (1)
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. Comment |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per contribution guidelines, this PR must be sent to next
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
.changeset/icy-views-lick.md(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
.changeset/**/*.md
📄 CodeRabbit inference engine (CONTRIBUTING.md)
.changeset/**/*.md: Create changesets using thejust new-changesetcommand; do not author them manually
In changeset markdown, only use headers #### or #####
Changeset descriptions must end every sentence with a full stop (.)
For bug fixes, start the changeset description with a linked issue reference like “Fixed #1234”
Prefer past tense for what was done and present tense for current behavior in changesets
Files:
.changeset/icy-views-lick.md
676e130 to
5da1c2f
Compare
The formatWithErrors option can now be set via CLI using the --format-with-errors flag. This flag was previously only available in the configuration file.
Co-authored-by: Emanuele Stoppa <[email protected]>
5da1c2f to
860b6da
Compare
CodSpeed Performance ReportMerging #7719 will not alter performanceComparing Summary
Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Summary
This PR exposes the
formatWithErrorsconfiguration option via CLI flag.Closes #7706
The flag was previously hidden (
#[bpaf(hide)]) but functional. This PR exposes it by:#[bpaf(hide)]to#[bpaf(long("format-with-errors"), argument("true|false"))]