Skip to main content
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.

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.toml file 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