-
Notifications
You must be signed in to change notification settings - Fork 22
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
Improve list of lints #79
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.
Thanks for the PR!
I see how linting is good but I can also see how keeping this list up-to-date is non-trivial. I would prefer to write something like #![warn(all)]
but I don't think it exists. I see a few options in this space:
- Manually lists as much lint as possible. The problem is maintenance.
- Only list lints with high benefit. That's kind of the current status.
- Have a script that keeps the list of lints up-to-date. Would be nice.
How did you come up with this list? Is it automatable?
How did you come up with this list? The comment doesn't describe this. What is the criteria for helpful? Why is it not all allowed-by-default list? |
What answer do you expect? It was a manual process as documented and is of course opinionated. I prefer to enable as many ("helpful") checks as possible to enforce idiomatic code. |
I have added many comments to document my rationale. If you think this is not sufficient please reword or add what you are missing. You may also close this PR and do it your way. This was just a proposal I consider beneficial. |
I see. I was expecting a methodological approach possibly based on some results or a study (like something going over all crates on crates.io). In other words, something broke and you tried to fix it. Yes, I'll have to take time to study the situation of lints in the community. I believe that having a long list of |
I even didn't start to add any Clippy lints which would suggest more idiomatic refactorings. Personally, I would prefer less freedom and more strict defaults to improve maintainability. Unrealistic. Manifold opinions, expectations, use cases, and environments that general purpose programming languages have to balance will prevent that. |
No description provided.