Problem/Motivation
This work on this sniff needs to be re-scoped into smaller child issues, per #3123060-54: Enable 'Drupal.Commenting.DocComment.ShortSingleLine' coding standard
Proposed resolution
Remaining tasks
- #3123060: Enable 'Drupal.Commenting.DocComment.ShortSingleLine' coding standard - The final issue to add the sniff and fix any new or missed errors.
The number of files was taken from the latest patch on the issues on 2022-10-04.
Done
- 100 files - #3268833: Fix method comments in tests for Drupal.Commenting.DocComment.ShortSingleLine
- 62 files - #3268835: Fix method comments in non tests for Drupal.Commenting.DocComment.ShortSingleLine
- 12 files - #3268838: Fix functions and test modules for Drupal.Commenting.DocComment.ShortSingleLine
- 42 files - #3268818: Fix class comment doc blocks in non tests 'Drupal.Commenting.DocComment.ShortSingleLine'
- #3268746: Fix missing newlines for 'Drupal.Commenting.DocComment.ShortSingleLine'
- #3268829: Fix class property comments for Drupal.Commenting.DocComment.ShortSingleLine
- #3269000: fix docblock of TestFieldWidgetMultiple::isApplicable
- 98 files - #3268809: Fix class comment doc blocks in tests for 'Drupal.Commenting.DocComment.ShortSingleLine'
Comments
Comment #2
quietone commentedDecided to split the work up by test files and non test files. Then in each group do the class comments and the methods in separate issues. There is a child for properties, one where only new lines are added and one for test modules and files (.inc, .module etc).
Hopefully this will make it easier to get through this piece of work.
Comment #3
xjmComment #4
xjmComment #5
quietone commentedAdd another child.
Comment #6
longwaveOnce we have fixed all tests we can add this to phpcs.xml.dist:
I don't think it's possible for PHPCS to tell the difference between class and method docblocks.
Comment #7
quietone commentedComment #8
quietone commented1 more committed
Comment #9
spokjeComment #10
quietone commentedComment #11
quietone commentedComment #12
longwave#3123060: Enable 'Drupal.Commenting.DocComment.ShortSingleLine' coding standard is committed and so this work is complete - thanks everyone!