mirror of
https://github.com/uutils/coreutils
synced 2024-10-15 12:24:09 +00:00
docs: add note for clippy usage
This commit is contained in:
parent
141a92c965
commit
cda04eb690
|
@ -36,3 +36,7 @@ To use the provided hook:
|
|||
2. Run `pre-commit install` while in the repository directory
|
||||
|
||||
Your git commits will then automatically be checked. If a check fails, an error message will explain why, and your commit will be canceled. You can then make the suggested changes, and run `git commit ...` again.
|
||||
|
||||
### Using Clippy
|
||||
|
||||
The `msrv` key in the clippy configuration file `clippy.toml` is used to disable lints pertaining to newer features by specifying the minimum supported Rust version (MSRV). However, this key is only supported on `nightly`. To invoke clippy without errors, use `cargo +nightly clippy`. In order to also check tests and non-default crate features, use `cargo +nightly clippy --all-targets --all-features`.
|
||||
|
|
Loading…
Reference in a new issue