-
Notifications
You must be signed in to change notification settings - Fork 84
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
Clippy Compliance within Kani #1373
Comments
Commands cargo clippy --all --message-format=json > clippy-logs.json-lines
cat clippy-logs.json-lines | \
jq 'select(.message!=null) | select(.message.rendered | test(".*error:.*")) | .message' | \
grep 'file_name' The first line generates the logs in line-delimited json. The second |
@celinval Shall we enable P.S. Will enable. |
For regression: cargo clippy --all-targets --all-features -- -D warnings |
Yes, please go ahead and add them to the regression! |
As per discussion on #1389, we permanently will ignore these two.
|
For actual kinds of warnings: cargo clippy --all --message-format=json | \
jq 'select(.message!=null) | .message.code.code' | grep -v '^null$' | \
sort | uniq -c Gives the following.
|
For the cargo metadata one, I was irritated that it issued those warnings for all crates when I tried enabling it for just one. But the simple fix there seems like it will ignore crates that are |
After #1429
|
As noted by @giltho & @celinval, there is a lot of clippy warnings in
Kani. This issue is for tracking compliance and tasks related to
measuring compliance.
kani-compiler
.since these are top-level errors. Some errors may contain
sub-errors, and we exclude all warnings.
script/kani-regressions.sh
. For now,explicitly ignore libraries that warnings, and incrementally
remove them as they are fixed.
The text was updated successfully, but these errors were encountered: