fix(migrate): update some more rule metadata#9888
Conversation
🦋 Changeset detectedLatest commit: b4a242b The changes in this PR will be included in the next version bump. This PR includes changesets to release 13 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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughAdds a Changesets entry for Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
crates/biome_cli/src/execute/migrate/unsupported_rules.rs (1)
271-301:⚠️ Potential issue | 🟡 MinorAdd explicit test assertion for reclassified Vue rules.
The
unsupported_rule_reason()function does exercise these rules through binary search at runtime, but there's no explicit unit test assertion for the five reclassified Vue rules (lines 271–301). The existing testsanity_check_unsupported_rule_lookup()validates onlyeol-last. Per project guidelines, classifications affecting user-facing migrate output should have explicit test coverage—consider adding assertions for at leastbrace-style,comma-dangle,max-attributes-per-line,multiline-html-element-content-newline, andmustache-interpolation-spacingto the test, matching the pattern already established.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@crates/biome_cli/src/execute/migrate/unsupported_rules.rs` around lines 271 - 301, The test sanity_check_unsupported_rule_lookup() only asserts eol-last but lacks explicit assertions for the five reclassified Vue rules; add assertions that call unsupported_rule_reason(...) (or use the same helper pattern in that test) for EslintVueJs("brace-style"), EslintVueJs("comma-dangle"), EslintVueJs("max-attributes-per-line"), EslintVueJs("multiline-html-element-content-newline"), and EslintVueJs("mustache-interpolation-spacing") and assert their returned UnsupportedRuleReason matches the expected classifications (FormatterCovers, FormatterCovers, Stylistic, FormatterCovers, FormatterCovers respectively) following the existing assertion style in sanity_check_unsupported_rule_lookup().
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In @.changeset/many-snakes-wonder.md:
- Line 5: Replace the incorrect phrase "better reflects" with "better reflect"
in the changeset text so the sentence reads "...to better reflect which ESLint
rules are redundant versus unsupported versus unimplemented."; locate the exact
occurrence of the string "better reflects" in the changeset content and update
it to "better reflect" to fix the grammar.
---
Outside diff comments:
In `@crates/biome_cli/src/execute/migrate/unsupported_rules.rs`:
- Around line 271-301: The test sanity_check_unsupported_rule_lookup() only
asserts eol-last but lacks explicit assertions for the five reclassified Vue
rules; add assertions that call unsupported_rule_reason(...) (or use the same
helper pattern in that test) for EslintVueJs("brace-style"),
EslintVueJs("comma-dangle"), EslintVueJs("max-attributes-per-line"),
EslintVueJs("multiline-html-element-content-newline"), and
EslintVueJs("mustache-interpolation-spacing") and assert their returned
UnsupportedRuleReason matches the expected classifications (FormatterCovers,
FormatterCovers, Stylistic, FormatterCovers, FormatterCovers respectively)
following the existing assertion style in
sanity_check_unsupported_rule_lookup().
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 23c85c89-4caa-4f0f-8153-17bb3b7b3596
📒 Files selected for processing (3)
.changeset/many-snakes-wonder.mdcrates/biome_cli/src/execute/migrate/unsupported_rules.rscrates/biome_css_analyze/src/lint/nursery/use_baseline.rs
Merging this PR will not alter performance
Comparing Footnotes
|
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Summary
A small PR to update the migrate metadata for some rules.
I made the decisions, gpt 5.4 made the edits.
Test Plan
green ci
Docs