mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 02:24:35 +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
21 lines
331 B
TOML
21 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
|