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
Move deny lint checks to script #1641
Conversation
This article which I am coincidentally reading right now suggests just putting OTOH I think |
BTW it looks like CI is having some sort of network hiccup. I'll kick this in a few hours, or another day. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 2ad5ba5
Amongst all the lints that we are deleting, are we losing anything that the compiler would not warn us? Should we make the |
Good question. I think |
2ad5ba5
to
ed21a6e
Compare
Thanks @apoelstra for the Article (Added to reading list). I have updated the commit. Does it look good now ? |
Looks great, thanks! CI is failing though because we don't have clippy available in all contexts. Could you change |
ed21a6e
to
aebe499
Compare
Could you copy the |
aebe499
to
e30ab4e
Compare
This is really interesting .... I'm surprised that we can run the examples in the root like this even though the examples actually live in @Harshil-Jani could you either:
|
contrib/test.sh
Outdated
if [ "$DO_LINT" = true ] | ||
then | ||
cargo clippy --all-features --all-targets -- -D warnings | ||
cargo clippy --example bip32 -- -D warnings | ||
cargo clippy --example handshake --features=rand-std -- -D warnings | ||
cargo clippy --example ecdsa-psbt --features=bitcoinconsensus -- -D warnings | ||
cargo clippy --example taproot-psbt --features=rand-std,bitcoinconsensus -- -D warnings | ||
fi | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We already have these lines in the bitcoin/contrib/test.sh
script, what is the purpose of adding them here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This ones have -D warnings
added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have -D warnings
in bitcoin/contrib/test.sh
also
e30ab4e
to
98bfd52
Compare
Going ahead with the second implementation. |
This looks good to me. Interesting that the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 98bfd52
I had a play with this. Looks like the explicit linting of the examples is unneeded, and git blame says I'm the goose that added those in the first place :) As far as I can tell we need no changes to the CI scripts at all in this PR to achieve the closing of the issue we just remove the "coding convention" attributes as is done. The CI scripts in bitcoin, hashes, and internals already have calls to clippy as: |
Thankyou @tcharding and @apoelstra for clarity and helping out.
|
98bfd52
to
794ffbd
Compare
Signed-off-by: Harshil Jani <harshiljani2002@gmail.com>
794ffbd
to
a1c3082
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK a1c3082
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK a1c3082
Closes #1551
Signed-off-by: Harshil Jani harshiljani2002@gmail.com