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.

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