-
Notifications
You must be signed in to change notification settings - Fork 14
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
384 add clippy to ci #459
384 add clippy to ci #459
Conversation
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.
Looks good to me 👍 Let's try to fix all the warnings that are now shown in this PR though.
Yes there are many warnings about unused functions that I believe happen only because of how On the other hand, there are some warnings (that I rolled back before) because I thought it was modifying a very critical part of the chain extension in this case which is hard to test properly. I will push that again and we can discuss it. |
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.
Looks good to me, I think we can merge once the CI passed 👍
We can merge this after fixes that will come shortly here for compiling with |
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.
Looks good to me too! 👍🏼 @gianfra-t #178 is merged now FYI.
I will try to remove some of the warnings and then merge! |
9f6aa00
to
51e82a4
Compare
@pendulum-chain/devs I was not able to remove the warning for |
Can we just disable the 'non_local_definitions' rule for the clippy checks then? I remember I was also struggling with this in Spacewalk, IIRC @b-yap and I just changed back the Rust toolchain version to an older one but that's of course not ideal. |
@ebma thanks for the linting reference, I thought about ignoring the local I also replaced the use of the direct definition of the weight of pallet vesting here. It is still manual, but at least clippy will not complain. Otherwise we need to do a benchmark just for this extrinsic. |
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.
Great 👍 looks good to me
Closes #384
Implements the same two rules for checking the code with
clippy
used in Spacewalk, one more strict for the main targets, and one more forgiving for the remaining ones.Due to the different imports in the package
runtime-integration-tests
, we need to run a separate checking step only for this package for it to compile properly. The rules are the same as for all targets.Additionally, some modifications are made to avoid some errors and warnings now that the check is implemented.