-
Notifications
You must be signed in to change notification settings - Fork 312
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
Way too many clippy::allow
#1127
Comments
Alternately (I haven't looked at specific instances here, maybe the right answer is just "fix the code"):
|
Indeed. Just globally disabling certain lints is much better than individually disabling every instance we violate them. If the person taking this issue feels inspired they could look and see if there are any lints that aren't enabled by default that we could enable in |
After some initial triage, I can provide this for context: I first removed all the clippy allow attributes and ran The default too-many-arguments-threshold is 7. The main offenders are: wallet/coin_selection.rs wallet/mod.rs tmp_plan/src/requirements.rs Some refactoring would help here, or the lazy way would be to simply set The main complaint in Similar to the large error lint, enum I started work on a branch that addresses the issues and brings the number of 'allow' macros down to 2 without changing clippy.toml, however a combination of code changes and clippy config tweaks might be warranted. |
in So I think we only need to fix the esplora ones. |
It seems we've got in the habit of doing
clippy::allow
at many points that clippy complains about something. I count ~20 places. I think we should fix most these and refrain from doing it in the future (don't merge new PRs withclippy::allow
in them).The text was updated successfully, but these errors were encountered: