+
Skip to content

Conversation

JamBalaya56562
Copy link
Contributor

Summary

Apply spelling corrections across the codebase

Chores:

  • Fix misspelling of "diagnostics" in test descriptions
  • Correct "organisation" to "organization" in governance documentation
  • Fix typo in variable name from "supression_reason" to "suppression_reason" in rules_check
  • Correct typo in CHANGELOG from "JsLogicalExpreesion" to "JsLogicalExpression"

Copy link

changeset-bot bot commented Aug 13, 2025

⚠️ No Changeset found

Latest commit: 6ceae96

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Contributor

coderabbitai bot commented Aug 13, 2025

Walkthrough

This PR applies editorial spelling corrections across documentation, tests, and a Rust task. GOV governance text standardises “organisation” to “organization.” A CHANGELOG typo is corrected (JsLogicalExpreesion → JsLogicalExpression). Test descriptions fix “diagnotics” → “diagnostics” in two JS test files. A comment typo in a CSS grammar file is corrected (“insensitve” → “insensitive”). In Rust, a local variable is renamed from supression_reason to suppression_reason and passed accordingly. No logic, behaviour, or public API changes.

Suggested labels

L-JavaScript, L-CSS, A-Parser, A-Project

Suggested reviewers

  • siketyan
  • ematipico

Tip

🔌 Remote MCP (Model Context Protocol) integration is now available!

Pro plan users can now connect to remote MCP servers from the "Integrations" page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

‼️ IMPORTANT
Auto-reply has been disabled for this repository in the CodeRabbit settings. The CodeRabbit bot will not respond to your replies unless it is explicitly tagged.

  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the A-Tooling Area: internal tools label Aug 13, 2025
Copy link
Contributor

@coderabbitai coderabbitai bot left a 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

🔭 Outside diff range comments (2)
xtask/rules_check/src/lib.rs (2)

510-516: Bug: Using JsonLanguage for CSS analysis

create_analyzer_options::<JsonLanguage> is used in the CSS branch. This will derive the wrong language settings and environment for CSS rules; diagnostics/options may be off or misapplied.

Proposed fix:

-                let options = create_analyzer_options::<JsonLanguage>(
+                let options = create_analyzer_options::<CssLanguage>(
                     &workspace_settings,
                     project_key,
                     &file_path,
                     test,
                 );

556-562: Bug: Using JsonLanguage for GraphQL analysis

Same issue here: GraphQL branch calls create_analyzer_options::<JsonLanguage>. Should be GraphqlLanguage.

Proposed fix:

-                let options = create_analyzer_options::<JsonLanguage>(
+                let options = create_analyzer_options::<GraphqlLanguage>(
                     &workspace_settings,
                     project_key,
                     &file_path,
                     test,
                 );
🧹 Nitpick comments (1)
GOVERNANCE.md (1)

78-78: Grammar polish: add article and improve flow

Reads more naturally and fixes the missing article before “Biome organization”.

-Core Contributors are outstanding [maintainers](#maintainer), are ambassadors of Biome organization and lead by example the community.
+Core Contributors are outstanding [maintainers](#maintainer), act as ambassadors of the Biome organization, and lead the community by example.
📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between df6f35e and 6ceae96.

📒 Files selected for processing (6)
  • GOVERNANCE.md (2 hunks)
  • packages/@biomejs/biome/CHANGELOG.md (1 hunks)
  • packages/@biomejs/js-api/tests/lintContent.test.ts (3 hunks)
  • packages/@biomejs/js-api/tests/nodejs.test.ts (1 hunks)
  • xtask/codegen/css.ungram (1 hunks)
  • xtask/rules_check/src/lib.rs (2 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
xtask/codegen/*.ungram

📄 CodeRabbit Inference Engine (CLAUDE.md)

xtask/codegen/*.ungram: Grammar definitions must be placed in /xtask/codegen/*.ungram
When adding new syntax nodes or rules, modify the appropriate .ungram file in xtask/codegen/ and run just gen-all to regenerate code

Files:

  • xtask/codegen/css.ungram
**/*.{rs,toml}

📄 CodeRabbit Inference Engine (CLAUDE.md)

Format code (Rust + TOML) using just format

Format Rust and TOML files before committing (use just f/just format).

Files:

  • xtask/rules_check/src/lib.rs
🪛 LanguageTool
GOVERNANCE.md

[style] ~42-~42: You can shorten this phrase to avoid wordiness.
Context: ...eration](#moderation). ### Lead Leads are the owners of the organization. Leads have additiona...

(BE_THE_MAKER_OF_WORDINESS)


[uncategorized] ~78-~78: Possible missing preposition found.
Context: ... Biome organization and lead by example the community. - Push access to the [Biome...

(AI_HYDRA_LEO_MISSING_IN)

⏰ 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). (11)
  • GitHub Check: Test Node.js API
  • GitHub Check: Documentation
  • GitHub Check: Test (depot-ubuntu-24.04-arm-16)
  • GitHub Check: Check JS Files
  • GitHub Check: Test (depot-windows-2022-16)
  • GitHub Check: End-to-end tests
  • GitHub Check: Lint project (depot-windows-2022)
  • GitHub Check: Lint project (depot-ubuntu-24.04-arm-16)
  • GitHub Check: Check Dependencies
  • GitHub Check: Parser conformance
  • GitHub Check: autofix
🔇 Additional comments (6)
xtask/codegen/css.ungram (1)

1834-1834: Spelling fix looks good

Nice catch on “insensitive”. No functional impact.

xtask/rules_check/src/lib.rs (2)

323-323: Rename to suppression_reason: ✅

Good typo fix and clearer naming. No behaviour change.


332-339: Pass the renamed variable consistently: ✅

The call site now passes suppression_reason correctly. All good.

packages/@biomejs/js-api/tests/nodejs.test.ts (1)

26-26: Typo fix in test description: ✅

“diagnostics” spelling corrected. Thanks!

packages/@biomejs/js-api/tests/lintContent.test.ts (1)

26-26: Consistent test wording: ✅

All three descriptions now read “should emit diagnostics”. Small change, big readability win.

Also applies to: 46-46, 67-67

packages/@biomejs/biome/CHANGELOG.md (1)

3827-3831: Typo fix in CHANGELOG: ✅

JsLogicalExpression now spelled correctly. Matches the intent in the PR summary.

### Lead

Leads are the owners of the organisation.
Leads are the owners of the organization.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Verification agent

🧩 Analysis chain

Tidy phrasing: “Leads own the organization” reads cleaner

Minor wording polish; also aligns with the style hint about wordiness.

Apply this diff:

-Leads are the owners of the organization.
+Leads own the organization.

Optionally verify there aren’t stray British spellings or the original typos elsewhere in the repo:


🏁 Script executed:

#!/bin/bash
# Find remaining British spellings where US English is intended
rg -n -S '\borganisation(s)?\b' || true

# Sanity check for the original test typo elsewhere
rg -n -S '\bdiagnotics\b' || true

Length of output: 766


Tidy phrasing & standardise spelling

Apply this diff in GOVERNANCE.md (line 42):

-Leads are the owners of the organization.
+Leads own the organization.

We also spotted several instances of the British spelling “organisation” in tests, snapshots and docs—please consider bulk-replacing to US English (“organization”):
• crates/biome_js_formatter/tests/specs/prettier/js/destructuring/destructuring.js (lines 9, 16)
• crates/biome_js_formatter/tests/specs/prettier/js/destructuring/destructuring.js.prettier-snap (lines 11, 20)
• crates/biome_js_formatter/report-es2024+.md (lines 2675, 2684)

No “diagnotics” typos were found.

📝 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.

Suggested change
Leads are the owners of the organization.
Leads own the organization.
🧰 Tools
🪛 LanguageTool

[style] ~42-~42: You can shorten this phrase to avoid wordiness.
Context: ...eration](#moderation). ### Lead Leads are the owners of the organization. Leads have additiona...

(BE_THE_MAKER_OF_WORDINESS)

🤖 Prompt for AI Agents
In GOVERNANCE.md around line 42 replace the sentence "Leads are the owners of
the organisation." with "Leads are the owners of the organization." to tidy
phrasing and standardize US spelling; additionally perform a bulk replace of
"organisation" → "organization" in the listed files and lines
(crates/biome_js_formatter/tests/specs/prettier/js/destructuring/destructuring.js
lines ~9,16;
crates/biome_js_formatter/tests/specs/prettier/js/destructuring/destructuring.js.prettier-snap
lines ~11,20; crates/biome_js_formatter/report-es2024+.md lines ~2675,2684),
commit each modified file with a concise message, and run tests/snap checks to
ensure nothing else broke.

@siketyan siketyan merged commit 0667478 into biomejs:main Aug 14, 2025
15 checks passed
@JamBalaya56562 JamBalaya56562 deleted the various-typos branch August 14, 2025 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Tooling Area: internal tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载