diff --git a/docs/changelog.md b/docs/changelog.md index 7c455f3e..1218e4f9 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -5,6 +5,17 @@ description: The latest updates and changes to CodeRabbit. sidebar_position: 13 --- +## April 8, 2025 + +### New Static Analysis Tools + +We've expanded our static analysis capabilities with two new tools: + +- **OXC**: A high-performance JavaScript/TypeScript linter written in Rust. +- **Prisma Lint**: A dedicated linter for Prisma schema files to help enforce consistent conventions and best practices. + +Both tools can be configured through their respective config files or through CodeRabbit's settings page. See our [tools documentation](https://docs.coderabbit.ai/tools/tools) for more details. + ## April 1, 2025 ### Code Graph Analysis diff --git a/docs/tools/oxc.md b/docs/tools/oxc.md new file mode 100644 index 00000000..ac01dfe0 --- /dev/null +++ b/docs/tools/oxc.md @@ -0,0 +1,46 @@ +--- +title: OXC +sidebar_label: OXC +description: CodeRabbit's guide to OXC (Oxidation Compiler). +--- + +```mdx-code-block +import ProPlanNotice from '@site/src/components/ProPlanNotice.mdx'; + + +``` + +[OXC](https://github.com/oxc-project/oxc) is a collection of high-performance JavaScript/TypeScript tools written in Rust, including a linter that is 50-100x faster than ESLint. + +## Files + +OXC will run on files with the following extensions: + +- `.js` +- `.jsx` +- `.ts` +- `.tsx` + +## Configuration + +OXC supports the following config files: + +- `oxlint.json` +- `.oxlintrc` +- `.oxlintrc.json` +- `oxlint.config.json` + +:::note + +OXC does not require configuration to run. If no OXC config file is found and Biome is enabled, CodeRabbit will use Biome instead as OXC functionality is included within Biome. If Biome is not enabled or an OXC config file is found, CodeRabbit will use the default OXC config. + +::: + +## Rule Configuration + +While OXC embraces convention over configuration, you can customize rules in your config file if needed. The config file should be in JSON format. See the [OXC documentation](https://oxc-project.github.io) for more details on available rules and configuration options. + +## Links + +- [OXC GitHub Repository](https://github.com/oxc-project/oxc) +- [OXC Website](https://oxc.rust-server.org) diff --git a/docs/tools/tools.md b/docs/tools/tools.md index a700825f..71651f3a 100644 --- a/docs/tools/tools.md +++ b/docs/tools/tools.md @@ -55,9 +55,9 @@ Remove extraneous f prefix | GitLab Pipelines | [Pipeline Remediation][Pipeline] | CI/CD Failure Remediation | | Go | [golangci-lint][golangci-lint] | Code Quality | | Helm | [Checkov][Checkov] | Code Security | -| Javascript | [Biome][Biome] | Code Quality | +| Javascript | [Biome][Biome], [OXC][OXC] | Code Quality | | JSON, JSONC | [Biome][Biome] | Code Quality | -| JSX | [Biome][Biome] | Code Quality | +| JSX | [Biome][Biome], [OXC][OXC] | Code Quality | | Kotlin | [detekt][detekt] | Code Quality | | Kubernetes | [Checkov][Checkov] | Code Security | | Markdown | [markdownlint][markdownlint], [LanguageTool][LanguageTool] | Code Quality, Grammar Checking | @@ -73,8 +73,8 @@ Remove extraneous f prefix | SQL | [SQLFluff][SQLFluff] | Code Quality | | Swift | [SwiftLint][SwiftLint] | Code Quality | | Terraform | [Checkov][Checkov] | Code Security | -| TSX | [Biome][Biome] | Code Quality | -| Typescript | [Biome][Biome] | Code Quality | +| TSX | [Biome][Biome], [OXC][OXC] | Code Quality | +| Typescript | [Biome][Biome], [OXC][OXC] | Code Quality | | YAML | [YAMLlint][YAMLlint] | Code Quality | | Prisma | [Prisma Lint][PrismaLint] | Code Quality | @@ -102,3 +102,4 @@ Remove extraneous f prefix [Semgrep]: ./semgrep.md [Pipeline]: ./pipeline-remediation.md [PrismaLint]: ./prisma-lint.md +[OXC]: ./oxc.md