Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is a part of the attempt to fix #2572645: [Meta] Fix 'Drupal.Commenting.FunctionComment' coding standard. This issue is created to tackle issues related to @see references
The following sub-sniffs are being fixed in this issue
Drupal.Commenting.FunctionComment.SeeAdditionalText
Drupal.Commenting.FunctionComment.SeePunctuation
Comment | File | Size | Author |
---|---|---|---|
#14 | drupal-coding-standards-function-comment-see-references-issues-2716661-14.patch | 37.12 KB | anoopjohn |
#14 | interdiff-2716661-11-14.patch | 23.36 KB | anoopjohn |
Comments
Comment #2
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedAttached please find the patch with the fixes to the sub-sniffs and changes to phpcs.xml.dist
Comment #3
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedComment #5
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedNot sure why this fails testing. The patch only changes comments. Changing status back to Needs Review
Comment #6
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedHead has moved on and the changes in phpcs.xml.dist is preventing the patch from being applied.
Also the patch conflicts with #2708185: Fix 'Drupal.Commenting.FunctionComment' coding standard - Issues related to spacing and styling
I have however re-rolled the patch such that it cleanly applies on the latest head after the patch in #2708185: Fix 'Drupal.Commenting.FunctionComment' coding standard - Issues related to spacing and styling is applied. I hope this protocol is correct. If I am doing something wrong please let me know.
interdiff is returning blank and hence not attaching it.
Comment #8
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedI think the failure is alright as this patch is expected to go after #2708185: Fix 'Drupal.Commenting.FunctionComment' coding standard - Issues related to spacing and styling. Changing back to Needs Review
Comment #9
alexpottNeeds reroll
Comment #10
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedI am able to apply the patch cleanly on 8.2.x. Can you please let me know if there is anything else that has to be done?
Comment #11
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedPulled again and I see changes in phpcs.xml that prevents the patch to be cleanly applied. Re-rolled and attached again.
Comment #12
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedComment #13
alexpottThese ones are interesting. I think they need to be moved to be after the @return. I don't think @see's can be part of a param doc block.
Let's move these to be after the @return.
Comment #14
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedThanks for the quick review. I have made the changes related to moving @see to the end and have created the patch again.
interdiff ran into errors with it being not able to handle hunk-splitting and option -U was not working for me. Ran diff -c10 instead.
Comment #16
anoopjohn CreditAttribution: anoopjohn at Zyxware Technologies commentedThe failure is a typo in the interdiff file extension. Hope that is alright.
Comment #17
alexpottLooks good.
Comment #18
alexpottComment #19
alexpottCommitted 53223f8 and pushed to 8.1.x and 8.2.x. Thanks!