-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand the scope of clippy checks #21
Comments
Shouldn't |
I was mainly thinking about crates where some features are contradictory and/or not meant to be enabled at the same time. Dunno exactly what could happen (with |
Right. |
We already |
Sure, just raising the issue, and that we should be careful with crates where features are not orthogonal. For example,
|
Ok so after a bit of digging around, it seems we get the most potential complaining out of |
Without this flag, it looks like not all workspace files are checked. You can test this by adding for example an unused import (`use std::clone;`) in rust-vmm/vmm-reference#11, file src/vmm/tests/integration_tests.rs. cargo check will fail only if we pass `--workspace` flag too. For clippy, this flag doesn't seem to have an obvious effect, this should be further investigated in rust-vmm#21. Signed-off-by: Laura Loghin <[email protected]>
Without this flag, it looks like not all workspace files are checked. You can test this by adding for example an unused import (`use std::clone;`) in rust-vmm/vmm-reference#11, file src/vmm/tests/integration_tests.rs. cargo check will fail only if we pass `--workspace` flag too. For clippy, this flag doesn't seem to have an obvious effect, this should be further investigated in rust-vmm#21. Signed-off-by: Laura Loghin <[email protected]>
Without this flag, it looks like not all workspace files are checked. You can test this by adding for example an unused import (`use std::clone;`) in rust-vmm/vmm-reference#11, file src/vmm/tests/integration_tests.rs. cargo check will fail only if we pass `--workspace` flag too. For clippy, this flag doesn't seem to have an obvious effect, this should be further investigated in #21. Signed-off-by: Laura Loghin <[email protected]>
I ran some experiments with clippy as well. We're now missing the most basic of them all ( First, I propose we use the ones that are non-debatable:
The |
We were not testing clippy for all features, the workspace, bins, and examples. Partially addresses: rust-vmm#21 Signed-off-by: Andreea Florescu <[email protected]>
We were not testing clippy for all features, the workspace, bins, and examples. Partially addresses: #21 Signed-off-by: Andreea Florescu <[email protected]>
The current way of invoking
clippy
as part of the CI pipeline (cargo clippy --all -- -D warnings
) does not check some parts of the code. It looks like the exhaustive list of relevant arguments is something along the lines ofcargo clippy --workspace --bins --examples --tests --benches --all-targets --all-features -- -D warnings
, with the caveat that--all-features
might not make sense for all crates.The text was updated successfully, but these errors were encountered: