Converted docs to coding standards. Some TODO's left before we can push this.
I'll leave this to others :)
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | 1614268-kernel-docs-16.patch | 13.75 KB | marvil07 |
| #14 | 1614268-kernel-docs-14.patch | 14.8 KB | Niklas Fiekas |
| #12 | 1614268-kernel-docs-12.patch | 20.65 KB | Niklas Fiekas |
| #12 | 1614268-kernel-docs-12-interdiff.txt | 885 bytes | Niklas Fiekas |
| #6 | 1614268-kernel-docs-6.patch | 14.79 KB | Niklas Fiekas |
Comments
Comment #1
jhodgdonThis is mostly OK, but:
Response -> Responds
Also, I don't think this belongs in a documentation-only patch:
And of course, there are the ToDos...
Comment #2
aspilicious commentedI think the second thing belongs in here. Do I rly have to open an issue to switch the se statements? Code wise it doens't make any difference at all.
Comment #3
jhodgdonNo, you don't have to open a separate issue, but why is it necessary or desirable to do it at all?
Comment #4
aspilicious commentedGrouping the use statements.
Now we have:
drupal
drupal
symfony
drupal
symfony
drupal
I want
symfony
symfony
symfony
drupal
drupal
drupal
drupal
Comment #5
jhodgdonRE #4 - I think you should therefore file a separate coding standards issue saying "use statements should always be grouped", and search through core and do this and any other files that violate it together. Documentation component patches should be limited to documentation.
Comment #6
Niklas Fiekas commentedI really want to see these docs fixes landing. Thanks aspilicious!
The patch was no longer applying. Rebased it. Fixed the TODOs and a few more things I found.
Comment #7
Crell commentedThese all look good to me.
aspilicious, can you open another issue and link it here about use-ordering? (I agree with having a sane order for them rather than willy-nilly.)
Comment #8
aspilicious commented#1624564: Coding standards for "use" statements
Comment #9
jhodgdonBefore I commit this, I just want to double-check on this one hunk:
I'm not sure why these in-code comments were removed (they weren't replaced by anything)?
Comment #10
aspilicious commentedThey are moved a bit higher.
Comment #11
jhodgdonOh I see, it's part of the function documentation... There, it doesn't make sense to me, as written. The function doc says:
"Protect the integrity..." -- the last sentence is confusing, because it's not clear whether you're telling people calling the function to do this, or saying that the function does this. It should probably say "This function protects the integrity...".
Should be a quick reroll to fix that...
Comment #12
Niklas Fiekas commentedYep, thanks @jhodgdon. That makes sense. This should make a bit clearer, that it's not the responsibility of the caller. (I'd like to move it to the method documentation, because it's really not an implementation detail of that method, but instead the whole reason for it's existence.)
Comment #14
Niklas Fiekas commentedReroll. My above file accidantely was based on an experimental branch I used to test https://github.com/symfony/symfony/pull/4546.
Comment #15
jhodgdonI took a very careful look at the added documentation... This is looking pretty good, but I think it could be made quite a bit better by improving the @return statements. Generically, @return statements on functions/methods should explain what is returned and how it is related to the parameters. Some of the @return statements in this patch could be improved:
a) There are several functions whose @return section follows this model:
That @return documentation would be better if it explained what type of response it is (AJAX? 404? HTTP? ???), and what it means. For example, this method:
I think it should probably say "An AJAX response for the controller result, wrapped in a textarea element.".
b)
This leaves me wondering what the array represents? It should probably say "An associative array of information about the last function that called [whatever it is], with elements 'file', 'line', and 'function'.".
Comment #16
marvil07 commentedRe-roll to let re-apply on current upstream. It still needs to add suggestion from #15.
Comment #17
jhodgdonI'm closing very old coding standards fixup issues. They are being addressed on other issues mostly.