mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-18 02:38:28 +00:00
01ea6241ae
Allow running `cargo dev lint` on a package directory Allows you run the local clippy in a specified directory, e.g. allowing ```sh # Lint a ui-cargo test cargo dev lint tests/ui-cargo/wildcard_dependencies/fail # Lint some other project cargo dev lint ~/my-project ``` The `target` directory is set to a tempdir which isn't ideal for medium/large projects as it would be compiled from scratch. This is to avoid cached clippy messages where you `cargo dev lint dir`, change something in clippy, and run `cargo dev lint dir` again changelog: Dev: `cargo dev lint` can now be run on a package directory
20 lines
331 B
TOML
20 lines
331 B
TOML
[package]
|
|
name = "clippy_dev"
|
|
version = "0.0.1"
|
|
edition = "2021"
|
|
|
|
[dependencies]
|
|
clap = "2.33"
|
|
indoc = "1.0"
|
|
itertools = "0.10.1"
|
|
opener = "0.5"
|
|
shell-escape = "0.1"
|
|
tempfile = "3.3"
|
|
walkdir = "2.3"
|
|
|
|
[features]
|
|
deny-warnings = []
|
|
|
|
[package.metadata.rust-analyzer]
|
|
# This package uses #[feature(rustc_private)]
|
|
rustc_private = true
|