CmdID

CmdID / Commands

cargo-clippy

A collection of lints to catch common mistakes and improve your Rust code. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Run checks over the code in the current directory

cargo clippyIdentify

Require that Cargo.lock is up to date

cargo clippy --lockedIdentify

Run checks on all packages in the workspace

cargo clippy --workspaceIdentify

Run checks for a package

cargo clippy --package packageIdentify

Run checks for a lint group (see <https://rust-lang.github.io/rust-clippy/stable/index.html#?groups=cargo,complexity,correctness,deprecated,nursery,pedantic,perf,restriction,style,suspicious>)

cargo clippy -- --warn clippy::lint_groupIdentify

Treat warnings as errors

cargo clippy -- --deny warningsIdentify

Run checks and ignore warnings

cargo clippy -- --allow warningsIdentify

Apply Clippy suggestions automatically

cargo clippy --fixIdentify