Clippy is a collection of lints to catch common mistakes and improve your Rust code. It is the official linter for the Rust programming language.Documentation Index
Fetch the complete documentation index at: https://docs.coderabbit.ai/llms.txt
Use this file to discover all available pages before exploring further.
Supported Files
Clippy will run on files with the following extensions:*.rs
Configuration
Clippy supports the following configuration files:clippy.toml.clippy.toml
Clippy does not require configuration to run. If no configuration file is found, it will use default settings.A Cargo.toml is required.
When we skip Clippy
CodeRabbit will skip running Clippy when:- No Rust files (
.rs) are found in the pull request. - No
Cargo.tomlfile is found in the repository. - Clippy is already running in GitHub workflows.
Features
Clippy can detect many code quality issues such as:- Style violations
- Common mistakes
- Performance issues
- Deprecated code patterns
- And many more Rust-specific issues