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.
We've introduced 3 coding standards regression in the 8.1.x cycle. We should fix them in the rc phase. The coding standards that core complies with a defined in core/phpcs.xml.dist
We should fix these two:
FILE: ...odules/big_pipe/tests/modules/big_pipe_test/big_pipe_test.module
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
1 | ERROR | [x] Missing file doc comment
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
FILE: ...vdisk/dev/sites/drupal8alt.dev/core/modules/system/system.module
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
335 | ERROR | [x] Doc comment star missing
----------------------------------------------------------------------
PHPCBF CAN FIX THE 1 MARKED SNIFF VIOLATIONS AUTOMATICALLY
----------------------------------------------------------------------
The third coding standard fail is in BigPipeTestController.php but we don't need to fix it because we're removing all the @file
docblocks in #2665992: @file is not required for classes, interfaces and traits
Comment | File | Size | Author |
---|---|---|---|
#5 | fix_coding_standards-2700475-5.patch | 1.24 KB | cilefen |
#5 | interdiff.txt | 1.06 KB | cilefen |
#3 | fix_coding_standards-2700475-3.patch | 1.26 KB | cilefen |
Comments
Comment #2
alexpottComment #3
cilefen CreditAttribution: cilefen commentedComment #4
alexpottI don't think the whitespace is correct here. See https://www.drupal.org/coding-standards/docs#lists - i think we should just follow the wrap around rule.
Comment #5
cilefen CreditAttribution: cilefen commented... and the module file comment may as well match the info file description.
Comment #6
alexpottLooks great thanks!
Comment #9
catchCommitted/pushed to 8.2.x and 8.1.x, thanks!