rust/clippy_dev
bors 01ea6241ae Auto merge of #8607 - Alexendoo:cargo-dev-lint-dir, r=flip1995,giraffate
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
2022-04-05 09:33:38 +00:00
..
src Auto merge of #8607 - Alexendoo:cargo-dev-lint-dir, r=flip1995,giraffate 2022-04-05 09:33:38 +00:00
Cargo.toml Auto merge of #8607 - Alexendoo:cargo-dev-lint-dir, r=flip1995,giraffate 2022-04-05 09:33:38 +00:00