Conversation
🦋 Changeset detectedLatest commit: 541c64f 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 |
WalkthroughThis PR fixes non-idempotent behaviour in Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 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
🤖 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/fair-snails-peel.md:
- Line 5: Update the sentence in the changeset line that reads "the command
`lint --write` is now idempotent when it's run against HTML-ish files that
contains scripts and styles" by replacing the incorrect verb "contains" with the
correct plural verb "contain" so it reads "...files that contain scripts and
styles" (look for the exact phrase containing "contains scripts and styles" in
the changeset text).
🪄 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: 048d8623-efe7-4f69-91f7-702a1df17713
⛔ Files ignored due to path filters (1)
crates/biome_cli/tests/snapshots/main_cases_html/lint_write_html_with_embedded_script_is_idempotent.snapis excluded by!**/*.snapand included by**
📒 Files selected for processing (5)
.changeset/fair-snails-peel.mdcrates/biome_cli/tests/cases/html.rscrates/biome_service/src/file_handlers/html.rscrates/biome_service/src/file_handlers/mod.rscrates/biome_service/src/workspace/server.rs
| "@biomejs/biome": patch | ||
| --- | ||
|
|
||
| Fixed [#9901](https://github.com/biomejs/biome/issues/9901): the command `lint --write` is now idempotent when it's run against HTML-ish files that contains scripts and styles. |
There was a problem hiding this comment.
Fix the subject–verb agreement in the changeset sentence.
Line 5 should read “files that contain scripts and styles” (not “contains”).
Suggested patch
-Fixed [`#9901`](https://github.com/biomejs/biome/issues/9901): the command `lint --write` is now idempotent when it's run against HTML-ish files that contains scripts and styles.
+Fixed [`#9901`](https://github.com/biomejs/biome/issues/9901): the command `lint --write` is now idempotent when it's run against HTML-ish files that contain scripts and styles.📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| Fixed [#9901](https://github.com/biomejs/biome/issues/9901): the command `lint --write` is now idempotent when it's run against HTML-ish files that contains scripts and styles. | |
| Fixed [`#9901`](https://github.com/biomejs/biome/issues/9901): the command `lint --write` is now idempotent when it's run against HTML-ish files that contain scripts and styles. |
🧰 Tools
🪛 LanguageTool
[grammar] ~5-~5: Possible subject-verb agreement error detected.
Context: ...en it's run against HTML-ish files that contains scripts and styles.
(PLURAL_THAT_AGREEMENT)
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In @.changeset/fair-snails-peel.md at line 5, Update the sentence in the
changeset line that reads "the command `lint --write` is now idempotent when
it's run against HTML-ish files that contains scripts and styles" by replacing
the incorrect verb "contains" with the correct plural verb "contain" so it reads
"...files that contain scripts and styles" (look for the exact phrase containing
"contains scripts and styles" in the changeset text).
Summary
Closes #9901
I used the last agent session to piggyback on the first for it. When
lint --writehappens, we need to return the snippet as is.Test Plan
Added a new test
Docs