Skip to content

rust-clippy

Lint collection for Rust developers who want cleaner, more idiomatic code from cargo

Permissive (OSI) · Apache-2.0

Listed by , founder & editor

73

Health

Active

Overview

Stars

13,690

Last commit

yesterday

Nov 2026

Repository age

12 years

since Nov 2014

Latest version

–

Contributors

–

29 active in 90 days

Releases

0

last 12 months

Language

Rust

Clippy is the official linter for Rust. It runs as a cargo subcommand and checks your code for mistakes, unidiomatic patterns, needless complexity and slow constructs. The crate ships more than 800 lints.

Lints are sorted into categories, each with a default level. Correctness lints deny by default. Suspicious, style, complexity and perf lints warn. Pedantic, restriction, nursery and cargo lints stay off until you turn them on. You change the level per category or per lint. The cargo category checks your manifest, not your source.

You install it with rustup as a component, then run cargo clippy inside any Rust project. It can also apply some suggested fixes automatically, much like the compiler does. It runs locally and in CI, so there is nothing to host.

It is part of the rust-lang organization, written in Rust and licensed under Apache-2.0. It has been developed since 2014 and is actively maintained. It has no proprietary product it directly replaces. It fills the role that paid static analysis tools fill in other languages.

Who it's for

Rust developers writing everyday application or library code

The default lints catch real bugs and nudge code toward idiomatic Rust with no configuration.

Skip if: You need security or compliance scanning across many languages, which a Rust-only linter does not cover.

Teams enforcing code standards in CI

Lint levels can be raised to deny, so builds fail when code breaks your agreed rules.

Skip if: You want a hosted dashboard that tracks quality trends over time.

Maintainers of Rust crates

The cargo lint category checks manifest problems alongside source code issues.

Skip if: You prefer to keep tooling minimal and rely only on compiler warnings.

The problem it solves

Rust code that compiles can still be wrong, clumsy or slower than it needs to be. Reviewers end up repeating the same style and correctness comments. Clippy automates those checks so they run on every build.

Strengths

  • More than 800 lints grouped into categories with sensible default levels
  • Installs through rustup and runs as cargo clippy
  • Can automatically apply some of its own suggested fixes
  • Lint levels are adjustable per category, so strictness is your choice
  • Maintained under the rust-lang organization with 28 contributors in the last 90 days

Trade-offs

  • Only analyzes Rust code
  • Pedantic lints can produce false positives, so you must tune them
  • Restriction lints can contradict each other and should not be enabled as a whole
  • No tagged releases in the past year; it ships with the Rust toolchain

Self-host rust-clippy

Self-hostable
No (desktop or local app)

Quick start

rustup component add clippy

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Clippy free?

Yes. It is licensed under Apache-2.0, which is a permissive open source license.

How do I install it?

Install it as a rustup component with rustup component add clippy. Then run cargo clippy in your project.

Does it need to be self-hosted?

No. It runs locally on your machine or in your CI job as a cargo subcommand.

Can it fix problems automatically?

It can apply some lint suggestions automatically, much like the compiler does. Not every lint offers a fix.

Can I turn off lints I do not want?

Yes. You set the level for each category or lint to allow, warn or deny.

Similar tools in Testing and code quality tools

oss-fuzz

Testing and code quality tools

13k 3k today Active Apache-2.0

fakecloud

Testing and code quality tools

Single-binary local AWS emulator for integration tests and CI without an account

799 64 6 days ago Thriving AGPL-3.0

Replaces Localstack

GStreamer Debug Viewer

Testing and code quality tools

Log viewer for reading and filtering GStreamer debug output during pipeline debugging

268 952 2 days ago Active GPL-3.0+

Bencher

Testing and code quality tools

Continuous benchmarking platform that flags performance regressions in pull requests

934 43 8 days ago Thriving MIT OR Apache-2.0

syzkaller

Testing and code quality tools

Coverage-guided kernel fuzzer for finding bugs in Linux and other OS kernels

6.4k 1.5k today Active Apache-2.0

miri

Testing and code quality tools

Interpreter that detects undefined behavior in unsafe Rust code and test suites

6.8k 549 today Active Apache-2.0