Closed (outdated)
Project:
Drupal core
Version:
8.9.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
7 Dec 2012 at 01:17 UTC
Updated:
29 Sep 2020 at 23:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
jhodgdonYou should be able to use some search-and-replace script to do this change, and if you can limit your patch to only this change, it should be easy to review/commit.
However, this type of cleanup should probably wait a while. There is a lot of patch activity right now, and cleanup patches interfere with other people trying to get real code and documentation improvements completed.
Comment #2
lars toomre commentedThanks for your initial thoughts @jhodgdon. I had been working on an initial patch before your post in #1.
Attached is an initial (and untested hand-created) patch that starts to address this issue. While I appreciate that a core committer can postpone this issue at any time, I would hope that this initial patch can be considered since it touches numerous files that have been in core for some time.
Also, a simple search-and-replace script would not identify instances where '@var boolean' is incorrect given that the class property is assigned a string as a default value. Carefully reading through the docblocks results in better accuracy, at least in my opinion.
Comment #3
jhodgdonSorry, patches that touch a huge number of files are postponed for now.
Comment #4
lars toomre commentedPlease define what "A huge number of files" are. It will help to focus on what can be committed on a somewhat timely manner.
Comment #5
jhodgdonWidespread cleanups are postponed until the cleanup phase of this release. This seems to be a widespread cleanup, so I've postponed it. When I looked at the patch, it had a very long list of files in it. I don't have an exact number for you, and I'm sorry if you are finding that frustrating, but really we're trying to concentrate on features and APIs and actual code, not cleaning up style problems at this time.
Comment #6
lars toomre commentedGiven a lack of direction, I am going to assume that a patch that does not touch more than ten files is not considered "huge".
I also appreciate that the main focus of D8 is on "features and APIs and actual code". However, when reading through core files/patches, there should be some mechanism to fix issues that one might identify. Or are incremental documentation fix patches inappropriate until (some unidentified time)?
Comment #7
jhodgdonIf there is an actual documentation bug, those can be fixed as we go, at any time. But we do not want to do "cleanup" issues that just address standards adherence rather than clarity and accuracy right now. Thanks!
Comment #8
mgiffordNow that Beta1's out is this a good time to address this?
Comment #17
quietone commentedThere have been a lot of fixes related to coding standards and I suspect this is now outdated. And not surprisingly the latest patch no longer applies.
I found these two issue which address the use of boolean in @var, @return and @param.
So, I think that has been fixed and it is safe to close this as outdated.
If you disagree, please reopen.