-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Split up files with // ignore-tidy-filelength
#60302
Comments
#61097 is going to help with some of the files. |
I count 17 different files that still have this comment. |
Hey, I'm not sure if anyone is working on this, but, this looks like it might be a good place to get started contributing. I am quite new to the language, but I'd like to get involved. Is this something as simple as pulling out structs and other related blocks of code into their own files and then including them in the original? |
@alex-griffiths: yes, it should be as simple as figuring out some sensible way to split up large files into related types and implementations! |
@varkor Alright, mind if I take a crack at this? |
@alex-griffiths: yes, go ahead! You can claim the issue with:
|
@rustbot claim |
@varkor I'm finding that a lot of the files that include the I'm still kind of new to the language, but for example in |
@alex-griffiths: that's an interesting observation. I think in these cases, it's not so important to split up the files, because the length doesn't pose an issue for comprehension. Anyone editing the file is going to be interested in one or two particular functions, which are well-isolated within the file, and wouldn't benefit from being in their own file. In some sense, files like these are "false positives", though I don't think we could automatically exclude them. The lint is really more for files with large functions, and interdependency that we want to make easier to navigate. Thanks for pointing this out! |
I'll start working through all the files that have the comment in them, and I'll compile a list of files that appear to mostly documentation, and then for the rest, I'll start trying to improve the navigability of them. |
Would like to help with this, too. Is there a possibility to share an issue? |
Seems like a good idea. You need
|
Oh sweet, thanks! This'll be my first contributions to the rust standard library. 😄 |
I believe changes to rustc_resolve need to be handled in a different manner. |
I am doing core::slice splitting (#76311 ) |
Hi @alex-griffiths, Would you mind if I take care of |
@lzutao maybe do |
Looks like there are three left in |
@rustbot release-assignment |
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
Further cleanup should focus on the files in |
Hey! I would like to start contributing to the project and this seems like a good starting point. Is the |
Yes, go ahead. |
I'd like to start contributing, and was directed here as a good starting point. What's still outstanding in this issue? |
@Sam-Buckley I updated the top of this issue with the current list: #60302 (comment) |
Updated issue description to not include |
Sorry to waste everyone's time, family matters came up and I'll have to stop for a while |
@rustbot release-assignment |
Hey there, I'll take a crack at cleaning some of these large files up. @rustbot claim |
@rustbot claim assign this to me i will work upon it |
can i start working on mod.rs first in first file ( i am new to it ) |
You don't need to finish all of them in one PR and please do not break all of them up in one PR. You can tackle each of the large files in a standalone PR. |
These files are over 3,000 lines, which is not ideal for navigating or comprehending. If we can, it would be good to split these up. See also #60015, which is a specific issue of this problem.
T-compiler:
T-rustdoc:
The text was updated successfully, but these errors were encountered: