"@see directives should always be placed on their own line"

patch coming.

Comments

jeffschuler’s picture

Assigned: jeffschuler » Unassigned
Status: Active » Needs review
StatusFileSize
new1.41 KB

moved @see to its own line

jeffschuler’s picture

see "See Also sections" in Doxygen and comment formatting conventions for instructions on how @see should appear in comments.

jhodgdon’s picture

Status: Needs review » Needs work

The docblocks in the original code are incorrect, but I am not entirely happy with this fix. When you put in @see, it makes a completely separate See Also section at the bottom of the doc page. I would prefer to just change the word "@see" in the original to "See", because that would leave the reference where it is relevant.

Also, if you do use @see, it should normally be at the bottom of the docblock as per guidelines.

jeffschuler’s picture

StatusFileSize
new1.47 KB

Understood and agreed.

I've removed the @see entirely, (which was, btw, at the bottom of the docblock.)

Those functions will get linked anyway.

[UPDATE: this patch actually changes the param text to See but leaves the new @see's around on their own lines.]

jeffschuler’s picture

Status: Needs work » Needs review
StatusFileSize
new1.38 KB

That last patch kept the @see's at the end around. This one removes them...

jhodgdon’s picture

Status: Needs review » Reviewed & tested by the community

Looks good to me, thanks!

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 1089332_at_see_doc_5.patch, failed testing.

jhodgdon’s picture

Status: Needs work » Reviewed & tested by the community

This is the usual d6 patch failure, so ignore that.

rfay’s picture

#5: 1089332_at_see_doc_5.patch queued for re-testing.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Ok I assume this does not apply to Drupal 8/7 since the DB layer was entirely overhauled. So committed and pushed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.