-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Warn if file contains large number of items #2261
Comments
One needs to take care not to count items generated by a single macro invocation as more than one item. Also, this lint would need to be configurable in clippy.toml |
Might also be a good idea to do some trivial analysis on similarity of names to group items together? E.g., suggest putting |
this sounds cool, I am going to start working on this 🐙 |
@Aadjou, did you have any success with this lint? The topic of "file that might need to be refactored to reduce its complexity" is something I'm very interested in, and it might have overlap with the Cognitive Complexity lint, after it gets polished enough to aggregate scores from the different functions present in one file. |
Dear @felix91gr |
It's okay, I hope everything's going alright :)
We might! I think this might belong if not to the Cognitive Complexity topic, to a very similar one. If you have ideas, feel free to ping me or At #3793 is the main discussion if you want to keep tabs on it; I'll post there once we start working on the new implementation 😊 |
Basically a lint that pushes people to factor their code into multiple files. I have no idea exactly how this would be computed, but it'd be nice to have in some form.
The text was updated successfully, but these errors were encountered: