-
-
Notifications
You must be signed in to change notification settings - Fork 739
feat(cli): print info count #7667
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
Conversation
🦋 Changeset detectedLatest commit: 426d110 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 |
4e9333e to
e4cff49
Compare
WalkthroughAdded counting and reporting for Information-level diagnostics. DiagnosticsPrinter gained an Possibly related PRs
Suggested labels
Suggested reviewers
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
Comment |
e4cff49 to
0f59a76
Compare
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
🧹 Nitpick comments (1)
crates/biome_cli/src/execute/traverse.rs (1)
297-299: Remove commented info count in theMessage::Errorbranch
Information‐severity diagnostics are routed viaMessage::Diagnostics, so delete the commented-outself.infos.fetch_addlines to avoid confusion.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (14)
crates/biome_cli/tests/snapshots/main_cases_assist/assist_emit_diagnostic_but_doesnt_block.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_cases_vcs_ignored_files/ignore_vcs_ignored_file_via_cli.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_check/print_json.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_check/print_json_pretty.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_check/should_not_disable_recommended_rules_for_a_group.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_format/print_json.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_format/print_json_pretty.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_lint/downgrade_severity_info.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_rule_with_config.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_lint/lint_only_rule_with_recommended_disabled.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_lint/linter_can_resolve_imported_symbols.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_lint/linter_enables_project_domain_based_on_extended_config.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_lint/should_not_disable_recommended_rules_for_a_group.snapis excluded by!**/*.snapand included by**crates/biome_cli/tests/snapshots/main_commands_lint/should_report_when_schema_version_mismatch.snapis excluded by!**/*.snapand included by**
📒 Files selected for processing (5)
.changeset/social-hornets-wait.md(1 hunks).changeset/warm-insects-dress.md(1 hunks)crates/biome_cli/src/execute/traverse.rs(7 hunks)crates/biome_cli/src/reporter/mod.rs(1 hunks)crates/biome_cli/src/reporter/terminal.rs(1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
crates/biome_*/**
📄 CodeRabbit inference engine (CLAUDE.md)
Place core crates under /crates/biome_*/
Files:
crates/biome_cli/src/reporter/terminal.rscrates/biome_cli/src/reporter/mod.rscrates/biome_cli/src/execute/traverse.rs
**/*.{rs,toml}
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Before committing, format Rust and TOML files (e.g., via
just f/just format)
Files:
crates/biome_cli/src/reporter/terminal.rscrates/biome_cli/src/reporter/mod.rscrates/biome_cli/src/execute/traverse.rs
**/*.rs
📄 CodeRabbit inference engine (CONTRIBUTING.md)
Document rules, assists, and options via inline rustdoc in Rust source
Files:
crates/biome_cli/src/reporter/terminal.rscrates/biome_cli/src/reporter/mod.rscrates/biome_cli/src/execute/traverse.rs
.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/social-hornets-wait.md.changeset/warm-insects-dress.md
🧬 Code graph analysis (2)
crates/biome_cli/src/reporter/terminal.rs (3)
crates/biome_cli/src/execute/mod.rs (1)
fmt(199-208)crates/biome_cli/src/reporter/summary.rs (5)
fmt(281-286)fmt(318-396)fmt(475-479)fmt(506-515)fmt(521-551)crates/biome_cli/src/execute/traverse.rs (3)
errors(219-221)warnings(223-225)infos(227-229)
crates/biome_cli/src/execute/traverse.rs (2)
crates/biome_service/src/diagnostics.rs (5)
severity(353-355)severity(395-397)severity(495-497)severity(548-550)severity(638-640)packages/@biomejs/plugin-api/index.d.ts (1)
Severity(1-1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Check Dependencies
- GitHub Check: Lint project (depot-windows-2022)
- GitHub Check: autofix
🔇 Additional comments (9)
.changeset/warm-insects-dress.md (1)
1-27: This changeset describes an unrelated feature.The PR is titled "feat(cli): print info count" and adds Information-level diagnostic counting, but this changeset documents a
lineEnding: "auto"feature. Either this changeset was included by mistake, or it belongs to a different PR.Please verify whether this changeset should be part of this PR. If not, consider removing it or moving it to the appropriate PR.
crates/biome_cli/src/reporter/mod.rs (1)
40-40: LGTM!The new
infosfield is correctly positioned and consistent with the existingerrorsandwarningsfields.crates/biome_cli/src/reporter/terminal.rs (1)
262-300: Clean implementation with proper mode-aware handling.The conditional rendering correctly distinguishes Search mode (which prints matches) from other modes (which print errors, warnings, and infos). Singular/plural handling is accurate throughout.
crates/biome_cli/src/execute/traverse.rs (6)
104-104: LGTM!The
infosaccessor is correctly called and the value is properly propagated into the traversal summary.
120-120: LGTM!The
infosfield is correctly included in theTraversalSummaryconstruction, maintaining consistency witherrorsandwarnings.
170-172: LGTM!The
infosfield follows the same pattern aserrorsandwarnings, usingAtomicU32for thread-safe access.
191-191: LGTM!The
infoscounter is correctly initialised to zero in the constructor.
227-229: LGTM!The accessor method correctly returns the info count using relaxed ordering, consistent with
errors()andwarnings().
356-358: LGTM!Information-level diagnostics are correctly counted in the
Message::Diagnosticsbranch.
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary
Addresses the discussion in this issue: #7622
Test Plan
Snapshots updated
Docs
N/A