A cargo subcommand to get clippy::pedantic lints for the changes you have made in a codebase.
cargo-scout is experimental and in a very rough draft for now.
The current minimum Rust version supported is 1.37 stable.
Git: In order to compute a set of changes, it requires a project running git.
cargo-clippy as a subcommand: Instructions can be found in the clippy repository.
$ cargo install cargo-scout
Open a shell, go to the project you would like to run the command in, and run cargo-scout, with an optional target branch:
$ cargo-scout # Diff with master
$ cargo-scout -b <branch_name> # Diff with the target branch you chose.
A git diff will be queried and clippy will be run as well, searching for lints that may apply to your diff.
If some lints can apply, the command execution will error out. This design decision has been made so you can put it in your CI pipeline at some point (but please wait for 1.0 release ^^').
We have a Code of Conduct so as to create a more enjoyable community and work environment. Please see the CODE_OF_CONDUCT file for more details.
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dual MIT/Apache2 is strictly more permissive