Skip to content

Fix/oxlint2 #324

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

Merged
merged 4 commits into from
May 9, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
link and note fixes
  • Loading branch information
alexcoderabbitai committed May 9, 2025
commit aeb737bbdb2b26403458285e6bfd41fc4e4263b8
21 changes: 5 additions & 16 deletions docs/tools/oxlint.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,26 +36,15 @@ Oxlint supports the following configuration file:

:::note

Oxlint does not require configuration to run. If no Oxlint config file is found and Biome is enabled, CodeRabbit will use Biome instead as Oxlint functionality is included within Biome. If Biome is not enabled or an Oxlint config file is found, CodeRabbit will use the default Oxlint config.
If no Oxlint config file is found and Biome is enabled, CodeRabbit will use Biome instead as Oxlint functionality is included within Biome.

:::

## Integration Details
If Biome is not enabled or an Oxlint config file is found, CodeRabbit will use the `.oxlintrc.json` Oxlint config to run.

When running Oxlint, CodeRabbit:
Oxlint does not require configuration to run if Biome is disabled and Oxlint is enabled.

1. Checks if Oxlint is enabled in your configuration
2. Verifies if a `.oxlintrc.json` configuration file exists
3. Processes files in parallel with a limit of 5 concurrent tasks
4. Uses the `--format=json` and `--deny-warnings` flags for consistent output
5. Maps the output to standardized findings with:
- Start line number
- End line number
- Error message
- Category (rule code)
- Severity level
:::

## Links

- [Oxlint GitHub Repository](https://github.com/oxc-project/oxc/releases/tag/oxlint_v0.16.10)
- [Oxlint GitHub Repository](https://github.com/oxc-project/oxc/releases/)
- [Oxlint Website](https://oxc.rs/docs/guide/usage/linter)